Skip to content

Instantly share code, notes, and snippets.

@bytemain
Created September 11, 2021 13:28
Show Gist options
  • Save bytemain/4602700bdf7e872242aa44276c290d9b to your computer and use it in GitHub Desktop.
Save bytemain/4602700bdf7e872242aa44276c290d9b to your computer and use it in GitHub Desktop.
use zx delete git tag
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