Skip to content

Instantly share code, notes, and snippets.

@m3dwards
Created January 12, 2017 13:29
Show Gist options
  • Save m3dwards/3c55f32db352470e7f64fb29d26e6eac to your computer and use it in GitHub Desktop.
Save m3dwards/3c55f32db352470e7f64fb29d26e6eac to your computer and use it in GitHub Desktop.
Deletes all local git branches containing a keyword
#! /bin/bash
git branch | grep "LPA" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment