of a friend of mine who understands git. Just wait through a few minutes of 'It's really pretty simple, just think of branches as...' and eventually you'll learn the commands that will fix everything.
or less) summary Second line is blank Rest of commit message should explain why and other useful information about the change See Tim Pope’s blog post on commit messages
backing the commit out by reseting one commit back git reset --hard HEAD~1 If you want to just fix a single badly merged file checkout the file you want git checkout GOOD_REF -- file
reach change in the HEAD reference (checkouts, rebase, cherry-picks, etc.) find the commit from before the change you want to fix and reset/checkout against it reflog expires after 90 days, but you can turn this off and have it never expire