Created
October 9, 2012 02:44
-
-
Save alh13/3856276 to your computer and use it in GitHub Desktop.
git-merge branch A into branch B so that B becomes EXACT copy of A
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 merge --no-commit && git checkout other-branch -- . && git commit | |
### https://twitter.com/adymitruk/status/69479850846593024 | |
# We needed this once after some intense debugging on the staging branch. We knew | |
# staging was correct and wanted to merge staging -> production and be sure that | |
# prod branch never "won" any conflicts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment