Created
December 10, 2012 16:54
-
-
Save zrod/4251777 to your computer and use it in GitHub Desktop.
"Replace" master with another branch
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
In the unfortunate case where a branch other than master is often used - or becomes the new "master" - and a replacement of master with it is required, execute the following codes: | |
git checkout branchie | |
git merge -s ours master | |
git checkout master | |
git merge branchie |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment