Created
October 24, 2017 07:19
-
-
Save mf81bln/e44e67d0438154dee1f85c3d9436931e to your computer and use it in GitHub Desktop.
git aliases
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
[user] | |
name = Max Muster | |
email = [email protected] | |
signingkey = ABCDEFG0123456789 | |
[push] | |
default = simple | |
[color] | |
ui = always | |
[commit] | |
gpgsign = true | |
[log] | |
mailmap = true | |
[core] | |
autocrlf = input | |
[alias] | |
# Delete all local branches but development/stage/master and the current one, only if they are fully merged with master. | |
delete-old-branches = "!f(){\ | |
git for-each-ref --format '%(refname:short)' refs/heads | grep -v development | grep -v stage | grep -v master | grep -v ^* | xargs git branch -d; \ | |
}; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment