Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Resolve git conflict in command line
Step 1: From your project repository, bring in the changes and test.
git fetch origin
git checkout -b server origin/server
git merge master
Step 2: Merge the changes and update on GitHub.
git checkout master
git merge --no-ff server
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment