Skip to content

Instantly share code, notes, and snippets.

@diasjorge
Created June 11, 2018 12:37
Show Gist options
  • Save diasjorge/bb31e87011c14abd6c064f72caa5cc2c to your computer and use it in GitHub Desktop.
Save diasjorge/bb31e87011c14abd6c064f72caa5cc2c to your computer and use it in GitHub Desktop.
for i in `ls`; do echo $i; cd $i; git co master; git pull; git branch -vv | grep -v origin | awk '{print $2}' | xargs git branch -D; cd ..; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment