码迷,mamicode.com
首页 > 其他好文 > 详细

bitbucket的简单使用

时间:2018-01-14 01:02:37      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:echo   log   错误   bit   info   comm   div   本地   ati   

1.如果你已经把项目建好的话,那么提交上去这样:
没有构建本地仓库的话,那先打包本地,到你的项目路径上去后
git init
git remote add origin https://linjiayu@bitbucket.org/昵称/仓库名.git
//这里要注意的是网址可能是ssh的,也可能是http的。
记得要把项目增加提交一下再push为好
git add *
git commit -m ‘commit information‘

如果在github的remote上已经有了文件,会出现错误。此时应当先pull一下,即:
git pull origin master

git push -u origin master

2.如果还没有本地项目的话:
git clone git@bitbucket.org:昵称/仓库名.git
cd bysjpsecho "# My project‘s README" >> README.mdgit
add README.md
git commit -m "Initial commit"
git push -u origin master
大概上面这样子。

bitbucket的简单使用

标签:echo   log   错误   bit   info   comm   div   本地   ati   

原文地址:https://www.cnblogs.com/ljy-1471914707/p/8280837.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!