Skip to content

Instantly share code, notes, and snippets.

@khanhtran3005
Created November 20, 2019 03:57
Show Gist options
  • Save khanhtran3005/c7213f00ad9a1abd132a5cddf91942bc to your computer and use it in GitHub Desktop.
Save khanhtran3005/c7213f00ad9a1abd132a5cddf91942bc to your computer and use it in GitHub Desktop.
Delete remote branches from local

git remote show origin | grep {pattern} | awk '{print $1}' | xargs git push origin -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment