Created
June 2, 2016 15:55
-
-
Save zhenyi2697/dfb497b8ab308d4866875c6b04859425 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Sometimes, master branch contains obsolete codes, and another branch is more "stable" and will be released to production. | |
If you merge this branch into master, you will find a lot of conflits for unknonw reason. And now, you want to make the other branch as your master. | |
You can: | |
git checkout more_stable_branch | |
git merge -s ours master | |
git checkout master | |
git merge more_stable_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment