-
-
Save TerraTech/86cdf8fa5c29df3d8ff8a2247739cb2f 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 other-branch && 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