Skip to content

Instantly share code, notes, and snippets.

@yurydelendik
Created September 21, 2012 23:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurydelendik/3764535 to your computer and use it in GitHub Desktop.
Save yurydelendik/3764535 to your computer and use it in GitHub Desktop.
alias for .git/config to squash commits
[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