gpt4 book ai didi

git - 可以为 user.name Git 配置使用长的非 ascii 名称吗?

转载 作者:太空狗 更新时间:2023-10-29 12:59:51 24 4
gpt4 key购买 nike

我的全名有点长,并且包含一个非 ascii 字符 ã。我想知道我是否应该在 git config --global user.name 中使用它,或者只是保持简短(以及这个决定会带来什么影响)。

换句话说,使用我的全名(就其长度而言)以及其中的非 ascii 字符是否有任何问题?

git config --global user.name "Hugo Leonardo Leão Mota"

最佳答案

如前所述in this thread , utf8 字符可以在足够新的 Git ( since git 1.7.10 ) 上正常工作。

之后,能否正确显示该字符串取决于您使用的工具。
例如,Qt Creatorto include a patch以 UTF-8 编码显示作者。

关于git - 可以为 user.name Git 配置使用长的非 ascii 名称吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24845258/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com