Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ngtrieuvi92/257b9693f98db88ca9926e85f3609f28 to your computer and use it in GitHub Desktop.

Select an option

Save ngtrieuvi92/257b9693f98db88ca9926e85f3609f28 to your computer and use it in GitHub Desktop.
checkout --our all conflict file
git status -s | grep ^U | awk '{print $2}' | xargs git checkout --ours
git status -s | grep ^U | awk '{print $2}' | xargs git add
git commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment