Skip to content

Instantly share code, notes, and snippets.

@aaronpowell
Created May 6, 2014 04:08
Show Gist options
  • Select an option

  • Save aaronpowell/e7bcb3942848c3a9a67d to your computer and use it in GitHub Desktop.

Select an option

Save aaronpowell/e7bcb3942848c3a9a67d to your computer and use it in GitHub Desktop.
Handling merge conflicts during a rebase (or any time) when you just want someone's version
git ss | grep "^UU" | sed 's/UU//' | while read i; do git checkout --theirs $i && git add $i; done
# change `--theirs` to `--ours` to take your own version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment