Skip to content

Instantly share code, notes, and snippets.

@deevis
Created October 26, 2015 21:00
Show Gist options
  • Save deevis/359741f1e498da14f9e3 to your computer and use it in GitHub Desktop.
Save deevis/359741f1e498da14f9e3 to your computer and use it in GitHub Desktop.
Choose multiple files from current branch as the 'merge conflict winner'
# All the files that match with 'coverage' and tell git to use the branch we're on currenthl (ours, opposed to theirs)
git status | grep coverage | sed 's/.*: \(.*\)/\1/g' | xargs git checkout --ours
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment