我懷疑我所遵循的工作流是否正確,或者我弄糟了這種情況。Git分支轉移問題和工作流程
我正在研究本地和遠程創建的分支上的新功能。我是唯一從事這項工作的人。
我創建它使用:
git checkout -b rotation upstream/master
現在我所做的更改和COMMITED:
git commit
和變化被推到遠程分支:現在
git push origin rotation
我的問題開始。此時我輸入了git fetch upstream
。
現在,當我git status
我得到的,
[email protected]:~/QgisGitWorking/Quantum-GIS$ git status
# On branch rotatation
# Your branch and 'upstream/master' have diverged,
# and have 4 and 5 different commits each, respectively.
#
nothing to commit (working directory clean)
我很困惑由分支分歧的消息。
- 這裏有什麼不對嗎?
- 如果我繼續 在這裏提交更改並推送上游,是否會出現問題?
- 如果有什麼錯,改正它的最好方法是什麼?
我對git相當陌生。以前我只用過VSS。
編輯:
[email protected]:~/QgisGitWorking/Quantum-GIS$ git remote -v
origin [email protected]:vinayan/Quantum-GIS.git (fetch)
origin [email protected]:vinayan/Quantum-GIS.git (push)
upstream git://github.com/qgis/Quantum-GIS.git (fetch)
upstream git://github.com/qgis/Quantum-GIS.git (push)
你從'git branch -avv'得到了什麼? – ellotheth
@ellotheth - 我得到http://pastebin.com/ncAB56Y3 – vinayan