Search code examples
gitspecial-charactersgit-tag

Cannot delete GIT tag because of special character "Ã"


A tag was created that contains "Ã" in the name, I am unable to delete the tag tried the following:

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

Tried also with double quote for the name.

When executing the commands git says that the tag was deleted: Local delete:

Deleted tag 'xxÃxx' (was 434eae7)

After push:

remote: warning: Allowing deletion of corrupt ref.
 - [deleted]         xxÃxx

Tag "xxÃxx" comes as new at every git fetch -p or git pull(event after two consecutive pulls).

Also tried to delete the tag from source tree but the tag appears again.


Solution

  • In order to stop receiving tag 'xxÃxx' as a new tag at every pull/fetch. I've made a clone of the repository.

    I did not find a solution on how to actually delete the tag, but this is acceptable for me.

    Special thanks to @VonC.