Skip to content

Instantly share code, notes, and snippets.

@alh13
Created October 9, 2012 02:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alh13/3856276 to your computer and use it in GitHub Desktop.
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
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