Created
November 6, 2018 09:42
-
-
Save Amoenus/1687522bdf5e8dbd51f40413ea20be2a to your computer and use it in GitHub Desktop.
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
git config --global alias.squash '!f(){ git reset --soft HEAD~${1} && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})"; };f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: