Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git remote prune origin (removes local references to remotes that have been removed)
- git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d (removes all local branches with references to removed remotes, best to run without "| xargs git branch -d" first)
Add Comment
Please, Sign In to add comment