Created
September 21, 2012 23:41
-
-
Save yurydelendik/3764535 to your computer and use it in GitHub Desktop.
alias for .git/config to squash commits
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
[alias] | |
squash = !sh -c 'git checkout mozilla/master && git merge --no-commit --squash $0 && git checkout -B $0 && git commit -e' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment