Created
December 18, 2019 20:46
-
-
Save noghte/696f564af3da62f26db0dd31e6d5e296 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout dev | |
git merge master | |
git checkout master | |
git merge --no-ff dev | |
git checkout dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/