diff options
author | desperateCoder <echotodevnull@gmail.com> | 2021-03-07 16:20:41 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2021-03-07 16:20:41 +0300 |
commit | f61e1087b1c1043f8593bca26d372ba067f18bc0 (patch) | |
tree | 3a548944ed86ff432708970bdc7df39e84889bcf /clearLocalBranches.sh | |
parent | 9ce245b61c716d8df1154004321afbe9615b31fc (diff) |
added clearLocalBranches.sh for branch cleanup not existing on remote
Diffstat (limited to 'clearLocalBranches.sh')
-rw-r--r-- | clearLocalBranches.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clearLocalBranches.sh b/clearLocalBranches.sh new file mode 100644 index 000000000..4126fc8dc --- /dev/null +++ b/clearLocalBranches.sh @@ -0,0 +1,4 @@ +#!/bin/bash +git checkout master +LANG=en_US +git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d
\ No newline at end of file |