git scripts

This commit is contained in:
Miguel Palhas
2024-10-06 14:36:09 +01:00
parent 1585865544
commit a436a816b6
14 changed files with 181 additions and 456 deletions
+10
View File
@@ -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