Browse Source

Remember to autoprune merged branches

Samuel W. Flint 5 years ago
parent
commit
7d5b54909f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      git-sync

+ 1 - 0
git-sync

@@ -19,6 +19,7 @@ fi
 git stash push -u -m "SYNC SAVE"
 git pull --all
 [ -e mid-sync ] && sh mid-sync
+git branch --merged | grep -vFf <(git branch -r | cut -d'/' -f2-) | xargs git branch -d
 git push --all origin
 [ -e post-sync ] && sh post-sync
 if git stash list | grep "SYNC SAVE" >/dev/null ; then