Created
August 26, 2022 15:52
-
-
Save 42atomys/3b938fc25f07ce8ddd96b813facd6442 to your computer and use it in GitHub Desktop.
Git alias sugar
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 --system alias.fetch-clean "\!f() { git branch --v | grep '\[gone\]' | awk '{print $1}' | xargs git branch -D; }; f" | |
git config --system alias.amend-to '!f() { SHA=`git rev-parse "$1"`; git commit --fixup "$SHA" && GIT_SEQUENCE_EDITOR=true git rebase --interactive --autosquash "$SHA^"; }; f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment