git scripts
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# prune remote branches
|
||||
git remote prune origin
|
||||
|
||||
git branch -r |\
|
||||
awk '{print $1}' |\
|
||||
grep -v -f /dev/fd/0 <(git branch -vv | grep origin) |\
|
||||
awk '{print $1}' |\
|
||||
xargs git branch -D
|
||||
Reference in New Issue
Block a user