Skip to content

Instantly share code, notes, and snippets.

@risent
Created October 13, 2015 09:00
Show Gist options
  • Select an option

  • Save risent/55be73b7081f1838d024 to your computer and use it in GitHub Desktop.

Select an option

Save risent/55be73b7081f1838d024 to your computer and use it in GitHub Desktop.
Remove remote branch tracking
git branch -a | awk -F "/" '{if (NF>1 && $3!="master") print $2"/"$3}' | xargs git branch -d -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment