add vacuum
This commit is contained in:
parent
a98194c8b6
commit
d474ab5b5d
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
tree = "log --show-signature --color --decorate --date=short --all --graph -n 3";
|
tree = "log --show-signature --color --decorate --date=short --all --graph -n 3";
|
||||||
newbranch = "!git checkout master && git fetch -p && git reset --hard origin/master && git checkout -b $2";
|
newbranch = "!git checkout master && git fetch -p && git reset --hard origin/master && git checkout -b $2";
|
||||||
head = "log HEAD -n1";
|
head = "log HEAD -n1";
|
||||||
|
vacuum = "!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs -r git branch -D && git gc --aggressive --auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue