在我的BranchA:
git add -u
git commit -m "fix weird issue"
git push origin origin/BranchA
在bitbucket中: 从master
创建新分支BranchB在命令提示符中:
git fetch
git checkout -b origin/BranchB
git pull -u origin origin/BranchB
//Updating 3 files, fast forward...
git status
// everything is clean
即使BranchA尚未合并为主文件,也会在本地显示3个文件。为什么呢?
答案 0 :(得分:0)
更好的序列是:
git add -u
git commit -m "fix weird issue"
git push -u origin branchA
git fetch
git checkout -b branchB origin/branchB
无需最终拉动