我怀疑我所遵循的工作流是否正确,或者我弄糟了这种情况。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