git fetch origin BRANCH
git merge origin BRANCH
- Resolve conflict:
- Manually.
grep -lr '<<<<<<<' .
- Choose one side.
git checkout --ours PATH/FILE
orgit checkout --theirs PATH/FILE
- Manually.
Created
April 5, 2016 00:47
-
-
Save tanyuan/bc46178794748194f5d94a8853a7ed9a to your computer and use it in GitHub Desktop.
How to merge the right and easy way.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment