bitbucket的简单使用

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

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

git push -u origin masterssh

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

相关文章
相关标签/搜索