My git cheat-sheet
Delete all remote branches
$ git fetch -p; git branch -r | grep -v master | sed "s/origin\///" | xargs git push origin --delete
Sync remote and local branches
$ git fetch --prune
Option ‘prune’ removes local branches absent in remote.
[ show comments ]
blog comments powered by Disqus