Last active
August 29, 2015 13:56
-
-
Save bcherny/8790541 to your computer and use it in GitHub Desktop.
useful git combinators
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
# rebase from master, deferring to master | |
git rebase master -s recursive -X theirs | |
# see diff between 2 branches | |
git diff --name.status master..branch | |
# .. or alternatively, | |
git diff --stat --color master..branch | |
# merge into a branch from another one, squashing all commits into one | |
git merge --squash branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment