【Note】bitbucket初识git

上传代码至服务器
#####################################################
[HTTPS 方式]
git init
git add .
git commit -m "xxx"
git remote add origin https://ljl@bitbucket.org/ljl/bill.git
git push -u origin --all

[SSH]
1.Settings
2.


tag
######################################################
git tag -d 1.1.0 //删除本地tag
git push origin:refs/tags/1.1.0 //删除服务器tag


下载服务器代码至本地
######################################################
git clone git@bitbucket.org:ljl/cpp-learning.git

Branching
#####################################################
$Creating branches
git clone https://ljl@bitbucket.org/seaares/stim.git
git checkout -b ljl/test

$Changes
git commit
git push origin ljl/test

$Pull request - Share your branch with your team by creating a pull request
1.Check for incoming changes
git fetch && git log ..origin/master

2.Check for outgoing changes
git fetch && git log origin/master..

3.Pull the changes into the local repository
git pull

posted @ 2013-09-11 15:00  trig  阅读(162)  评论(0)    收藏  举报