Created
January 13, 2015 21:48
-
-
Save jordancalder/561b0f6a721d7223f200 to your computer and use it in GitHub Desktop.
Git Overwrite Local Conflicts - Leave Other Local Changes Alone
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 add * | |
git commit -m "commit message" | |
//Fetch changes and overwrite local conflicts | |
git fetch origin master | |
git merge -s recursive -X theirs origin/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment