Created
February 25, 2013 03:53
-
-
Save djburdick/5027458 to your computer and use it in GitHub Desktop.
git merge. #git
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
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