Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordesperateCoder <echotodevnull@gmail.com>2021-03-07 16:20:41 +0300
committerdesperateCoder <echotodevnull@gmail.com>2021-03-07 16:20:41 +0300
commitf61e1087b1c1043f8593bca26d372ba067f18bc0 (patch)
tree3a548944ed86ff432708970bdc7df39e84889bcf /clearLocalBranches.sh
parent9ce245b61c716d8df1154004321afbe9615b31fc (diff)
added clearLocalBranches.sh for branch cleanup not existing on remote
Diffstat (limited to 'clearLocalBranches.sh')
-rw-r--r--clearLocalBranches.sh4
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