Reputation: 6454
I was running a simple merge and expecting no conflicts, and I ran git merge my_dev_branch
However I got a merge conflict which looked messy to resolve, and made me think that I wasn't clear on my branch history. Rather than resolve the conflict I would like to abandon the merge and go back to where I was before.
Two questions:
git checkout HEAD <filename>
on each file per this question and that this would amount to abandoning the merge?Upvotes: 37
Views: 10648