Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/bin/zsh -eu
  2.  
  3. function __info() {
  4. echo -e "\e[32m$*\e[m"
  5. }
  6.  
  7. __info "# git fetch --prune"
  8.  
  9. git fetch --prune
  10.  
  11. __info "# git branch -d <branch>"
  12.  
  13. for b in $(git branch | grep -v '*'); do
  14. git branch -d "$b"
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement