git - 微调gitk编码

标签 git

我在 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/

相关文章:

git - CruiseControl 和 Git 没有 checkout 分支

git - 如何维护 Drupal.org 项目的本地镜像?

git - `git reset --hard master` 和 `git reset --hard origin/master` 有什么区别?

wordpress - 将 WordPress 保持在版本控制中 - 单独的主题 repo 协议(protocol)

php - 如何在 Openshift 中打开数据库连接?

git - 我安装了 Github Desktop,是否需要安装 Git 才能使用命令行?

python - Gitstats Eclipse

git,远程访问 - ssh

java - 从 Eclipse 推送到 Openshift : Read timeout after 30, 000 毫秒

git - SourceTree 不尊重 .gitattributes 文件