Skip to content

Instantly share code, notes, and snippets.

@djburdick
Created February 25, 2013 03:53
Show Gist options
  • Save djburdick/5027458 to your computer and use it in GitHub Desktop.
Save djburdick/5027458 to your computer and use it in GitHub Desktop.
git merge. #git
1. Start with a clean working directory
2. current branch is always the target
3. investigate conflicts with git diff (or git mergetool)
4. edit conflicting files
5. git add file
6. git commit
Aborting a merge:
git reset --hard HEAD # prior to merge commit
git reset --hard ORIG_HEAD # after merge commit
git checkout -m # bad conflict resolution - return to original conflict state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment