Skip to content

Instantly share code, notes, and snippets.

@mf81bln
Created October 24, 2017 07:19
Show Gist options
  • Save mf81bln/e44e67d0438154dee1f85c3d9436931e to your computer and use it in GitHub Desktop.
Save mf81bln/e44e67d0438154dee1f85c3d9436931e to your computer and use it in GitHub Desktop.
git aliases
[user]
name = Max Muster
email = max.muster@domain.tld
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