I have a doubt whether the workflow that I follow is correct or if I have messed up the situation.
I was working on a new feature on the branch that i created locally and on remote. I am the only person working on it.
I Created it using:
git checkout -b rotation upstream/master
Now I made changes and commited:
git commit
and changes were pushed to remote branch:
git push origin rotation
My problem starts now. I typed git fetch upstream
at this point.
Now when I git status
I get,
vinayan@vinayan-MS-7623:~/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)
I am confused by the branch diverged message.
- Is anything wrong here?
- Is there going to be an issue if i continue committing changes here and push upstream?
- If something is wrong, what would be the best way to correct it?
I am quite new to git. Previously I have only used VSS.
Edit:
vinayan@vinayan-MS-7623:~/QgisGitWorking/Quantum-GIS$ git remote -v
origin git@github.com:vinayan/Quantum-GIS.git (fetch)
origin git@github.com:vinayan/Quantum-GIS.git (push)
upstream git://github.com/qgis/Quantum-GIS.git (fetch)
upstream git://github.com/qgis/Quantum-GIS.git (push)