Skip to content

Instantly share code, notes, and snippets.

@noghte
Created December 18, 2019 20:46
Show Gist options
  • Save noghte/696f564af3da62f26db0dd31e6d5e296 to your computer and use it in GitHub Desktop.
Save noghte/696f564af3da62f26db0dd31e6d5e296 to your computer and use it in GitHub Desktop.
git checkout dev
git merge master
git checkout master
git merge --no-ff dev
git checkout dev
@noghte
Copy link
Author

noghte commented Apr 3, 2020

check conflicts:
grep -lr --exclude-dir=node_modules '<<<<<<<' .

accept one file from incoming or current:
git checkout --theirs PATH/FILE
git checkout --ours PATH/FILE

accept all incoming:
grep -lr --exclude-dir=node_modules '<<<<<<<' . | xargs git checkout --theirs

source: https://easyengine.io/tutorials/git/git-resolve-merge-conflicts/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment