In team work, when I pulled a branch edited by another member, I couldn't go back to my working branch.
python
vocstartsoft:~/environment/app (develop|MERGING) $ git checkout [The branch you want to go back to]
error: you need to resolve your current index first
I did a git pull and resolved the conflict, but I can't checkout! The cause is that the branch status is MERGING. (The resolved conflict is not reflected in the repository.)
python
vocstartsoft:~/environment/app (develop|MERGING) $
After resolving Conflict
python
vocstartsoft:~/environment/app (develop|MERGING) $ git add .
vocstartsoft:~/environment/app (develop|MERGING) $ git commit -m "comment"
If the conflict is resolved, you can commit and merge successfully. The description of "| MERGING" should have disappeared.
python
vocstartsoft:~/environment/app (develop) $