Created
July 27, 2011 15:00
-
-
Save twymer/1109542 to your computer and use it in GitHub Desktop.
How I handle nasty merge conflicts from github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --HARD HEAD@{0} // Can see options with git reflog, this should undo the pull's changes | |
git reset --soft HEAD~ // Pull your last commit out to the index (might need to reset further) | |
git stash | |
git pull | |
git stash pop | |
Now fix your issues and push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment