【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
浙公网安备 33010602011771号