bitbucket的简单使用

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
大概上面这样子。

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