Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Clear the stale remote branches
- git remote prune origin
- //Clear local branches that have no matching remote branch
- git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement