Created
January 12, 2017 12:17
-
-
Save shijinkui/f254c9a9e1a5f6fa18c939a992912950 to your computer and use it in GitHub Desktop.
批量删除git branch和tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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