我在 gitk 中创建了一个带有以下消息的注释标签:
Plots são mostrados na mesma janela.
但是现在 gitk 显示:
Plots são mostrados na mesma janela
如何纠正编码?
最佳答案
你是否正确设置了 git 编码?
git config --global gui.encoding utf-8
看来你没有设置正确。 如果是这种情况,您仍然可以更新消息并更改它们。
带注释的标签是“真正的”提交,因此使用 git filter-branch
使用所需的标志可以将您的提交消息更新为正确的编码。
另一种选择是一旦设置了正确的编码就直接用新消息更新标记消息
git tag <tag name> <tag name> -f -m "<new message>"
关于git - 微调gitk编码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28394557/