Last active
March 2, 2020 20:41
-
-
Save nurrony/7caeb491396298fcff019e2bfc350c3c to your computer and use it in GitHub Desktop.
Remove all git tags from local and remote
This file contains hidden or 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
| #!/usr/bin/env bash | |
| git filter-branch --index-filter "git rm --cached --ignore-unmatch $1" -- --all | |
| rm -Rf .git/refs/original | |
| rm -Rf .git/logs/ | |
| git gc --aggressive --prune=now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment