Add git cleanup command

This commit is contained in:
Jake Howard 2017-10-26 10:46:06 +01:00
parent ff0afa170d
commit 4691ab19cc
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -19,6 +19,11 @@ gh() {
fi fi
} }
git-cleanup() {
command git checkout master && git branch --merged | grep -v '*' | xargs -n 1 git branch -d
command git gc --aggressive
}
alias t="tig" alias t="tig"
alias ts="tig status" alias ts="tig status"