Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ishikawa/af14c45b798830341bdb52665ef68999 to your computer and use it in GitHub Desktop.
Save ishikawa/af14c45b798830341bdb52665ef68999 to your computer and use it in GitHub Desktop.
# Checkout theirs unmerged files and continue rebase
git ls-files --unmerged | awk '{ print $4 }' | uniq | xargs git checkout --theirs --
git ls-files --unmerged | awk '{ print $4 }' | uniq | xargs git add --
git rebase --continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment