[alias]delete-tag = "!f() { \echo 'deleting tag' $1 'from remote/origin ausing command: git push --delete origin tagName;'; \git push --delete origin $1; \echo 'deleting tag' $1 'from local using command: git tag -d tagName;'; \git tag -d $1; \}; f"
用法看起来像:
-->git delete-tag v1.0-DeleteMedeleting tag v1.0-DeleteMe from remote/origin ausing command: git push --delete origin tagName;To https://github.com/jsticha/pafs- [deleted] v1.0-DeleteMedeleting tag v1.0-DeleteMe from local using command: git tag -d tagName;Deleted tag 'v1.0-DeleteMe' (was 300d3ef22)