Skip to content

Instantly share code, notes, and snippets.

@ivan-leschinsky
Created June 7, 2016 09:40
Show Gist options
  • Select an option

  • Save ivan-leschinsky/347e62fe50a35e199fbafd10467a552d to your computer and use it in GitHub Desktop.

Select an option

Save ivan-leschinsky/347e62fe50a35e199fbafd10467a552d to your computer and use it in GitHub Desktop.
Removes all local git branches with name containing your string
# my-prefix- is branches prefix
git branch | grep my-prefix- | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment