Flo*_*ica 6 git special-characters git-tag
创建了一个标签,其名称中包含"Ã",我无法删除标签,尝试了以下内容:
git tag -d -- xxÃxx
git push origin :refs/tags/xxÃxx
git config --global core.precomposeunicode true
git tag -d -- xxÃxx
git push origin :refs/tags/xxÃxx
Run Code Online (Sandbox Code Playgroud)
也试过这个名字的双引号.
执行命令时,git表示标签已删除:本地删除:
Deleted tag 'xxÃxx' (was 434eae7)
Run Code Online (Sandbox Code Playgroud)
推后:
remote: warning: Allowing deletion of corrupt ref.
- [deleted] xxÃxx
Run Code Online (Sandbox Code Playgroud)
标签"xxÃxx"在每个git fetch -p或git pull(两次连续拉动后的事件)中都是新的.
还尝试从源树中删除标记,但标记再次出现.
为了停止接收标签 'xx\xc3\x83xx'在每次拉/取时接收标签作为新标签。我已经克隆了存储库。
我没有找到如何实际删除标签的解决方案,但这对我来说是可以接受的。
\n\n特别感谢@VonC。
\n