Created
September 11, 2021 13:28
-
-
Save bytemain/4602700bdf7e872242aa44276c290d9b to your computer and use it in GitHub Desktop.
use zx delete git tag
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
| const args = process.argv.slice(2); | |
| if (args.length === 0) { | |
| console.error('请输入要删除的 tag'); | |
| process.exit(1); | |
| } | |
| const tag = args[0]; | |
| await $`git tag -d ${tag}`; | |
| await $`git push origin :refs/tags/${tag}`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment