Skip to content

Instantly share code, notes, and snippets.

@bcherny
Last active August 29, 2015 13:56
Show Gist options
  • Save bcherny/8790541 to your computer and use it in GitHub Desktop.
Save bcherny/8790541 to your computer and use it in GitHub Desktop.
useful git combinators
# 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