Don't GC when doing git cleanup

This commit is contained in:
Jake Howard 2019-05-12 10:46:59 +01:00
parent 11aa644a14
commit 47cdcd6734
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -17,7 +17,6 @@ git-cleanup() {
command git branch --merged | grep -v '*' | xargs -n 1 git branch -D command git branch --merged | grep -v '*' | xargs -n 1 git branch -D
command git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D command git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
command git remote prune origin command git remote prune origin
command git gc --aggressive
command git checkout - command git checkout -
} }