Add git cleanup command
This commit is contained in:
parent
ff0afa170d
commit
4691ab19cc
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,11 @@ gh() {
|
|||
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 ts="tig status"
|
||||
|
||||
|
|
Loading…
Reference in a new issue