Guest User

Untitled

a guest
May 27th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. git fetch -p && for branch in `git branch -vv | grep '^[^\*].*: gone]' | awk '{print $1}'`; do echo $branch; done && read -p "Do you want to delete these local branches (y/n)?" choice
  2. case "$choice" in
  3. y|Y ) git fetch -p && for branch in `git branch -vv | grep '^[^\*].*: gone]' | awk '{print $1}'`; do git branch -D $branch; done && read -p "Press enter to exit";;
  4. * ) echo "invalid";;
  5. esac
Add Comment
Please, Sign In to add comment