Skip to content

Instantly share code, notes, and snippets.

@shijinkui
Created January 12, 2017 12:17
Show Gist options
  • Save shijinkui/f254c9a9e1a5f6fa18c939a992912950 to your computer and use it in GitHub Desktop.
Save shijinkui/f254c9a9e1a5f6fa18c939a992912950 to your computer and use it in GitHub Desktop.
批量删除git branch和tag
git branch -r | awk -F/ '/\/release/{print $2}' | xargs -I {} git push origin :{}
git tag -l | xargs -n 1 git push --delete origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment