git tag remove#599
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds documentation for removing Git tags, both from remote repositories and locally. The addition provides useful commands for bulk tag deletion operations.
- Adds a new section titled "GIT 如何删除remote中所有tag" (How to delete all tags in remote)
- Provides commands for deleting all remote tags using
git show-refwithawkandxargs - Includes a command for deleting all local tags using
git tag -lwithxargs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| [Git及GitHub教程](https://www.githubs.cn/post/git-tutorial) | ||
|
|
||
|
|
||
| ### GIT 如何删除remote中所有tag |
There was a problem hiding this comment.
The section heading has an inconsistency in formatting. Looking at the document structure, this new section should be placed before "## 参考教程" (line 287) rather than after it. The "参考教程" section appears to be a closing reference section, and new content sections should come before it.
|
|
||
|
|
||
| ``` | ||
| git show-ref --tag | awk '{print ":" $2}' | xargs git push mist-modules |
There was a problem hiding this comment.
The git command appears to reference a specific remote name 'mist-modules' which seems overly specific for a general documentation guide. This should either use a generic placeholder like 'origin' or include an explanation that users should replace 'mist-modules' with their actual remote name.
| git show-ref --tag | awk '{print ":" $2}' | xargs git push mist-modules | |
| git show-ref --tag | awk '{print ":" $2}' | xargs git push origin |
|
|
||
| ``` | ||
| git show-ref --tag | awk '{print ":" $2}' | xargs git push mist-modules | ||
| ``` |
There was a problem hiding this comment.
The description "删除本地所有tag" (Delete all local tags) is placed after the code block for deleting remote tags, which creates confusion. It should appear before its corresponding code block on line 299. The logical flow should be: description first, then the code block that implements that description.
| ``` |
No description provided.