diff --git a/.gitconfig b/.gitconfig index 6357604..af2255e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -11,6 +11,10 @@ remote = remote -v sp = stage -p last = log -1 HEAD --stat + # Delete all local branches but master and the current one, only if they are fully merged with master. + delbranches = "!f(){\ + - git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\ + }; f" dellast = reset HEAD^1 [core] editor = vim