Skip to content

Instantly share code, notes, and snippets.

@madx
Created March 13, 2013 16:41
Show Gist options
  • Save madx/5153931 to your computer and use it in GitHub Desktop.
Save madx/5153931 to your computer and use it in GitHub Desktop.
Speed up conflict resolution in Git!
[alias]
resolve = !sh -c 'git conflicts && $EDITOR $(git conflicts) +\"/<<<<\"'
conflicts = !sh -c 'git status -sb | grep ^UU | sed "s/UU\\ //"'
# After a failed rebase/merge
$ git resolve
... resolve the conflicts ...
$ git add $(git conflicts)
$ git rebase --continue # or equivalent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment