Github在我进行的提交中未正确显示我的用户名

问题描述 投票:0回答:1

我的用户名遇到问题,它在我在Github上进行的提交中显示了其他用户名。我该如何解决这个问题?更具体地说,我在GitHub上的实际用户名是niro1234,但是当我在存储库中进行一些更改并提交已提交的用户时,显示为user1234。

一个答案非常感谢,因为它从不打算成为我

git github
1个回答
0
投票

我希望this链接可以帮助您解决上述问题。如后所述,您应该使用以下命令更改Git作者的身份。要全局更改:

$ git config --global user.name "John Doe"
$ git config --global user.email "[email protected]"

要更改每个存储库:

$ git config user.name "John Doe"
$ git config user.email "[email protected]"
© www.soinside.com 2019 - 2024. All rights reserved.