Trying to update (pull) in git causes the error ‘you’re in the middle of a conflicted merge’.
How to resolve a Git Conflict?
Solution
NOTE: Take a backup of your code before you do this. This will remove all your changes and revert to master branch!!
To be able to get out of this error try the followng:
- git reset --hard HEAD
- git fetch origin
- git reset --hard origin
This site helped me when i faced this problem - http://www.42.mach7x.com/2009/11/24/youre-in-the-middle-of-a-conflicted-merge-git/
No comments:
Post a Comment