GitLab显示计算机名+;路由器名称作为提交者名称

GitLab显示计算机名+;路由器名称作为提交者名称,git,gitlab,github-for-mac,Git,Gitlab,Github For Mac,我最近重新安装了GitHub Desktop(我使用的Git客户端),现在我对GitLab项目所做的所有提交都显示为用户名“[my mac username]@[my computer name]。[name of my router]”,而不是GitLab安装中的用户名 我做错了什么? 如何解决这个问题?Git完全在您的机器上本地提交,您推送这些提交的站点只是读取它们。因此,您的Gitlab帐户与您作为谁提交无关。这对于谁做了什么以及何时做了什么的完整性至关重要 您得到的是Git的默认用户名。

我最近重新安装了GitHub Desktop(我使用的Git客户端),现在我对GitLab项目所做的所有提交都显示为用户名“[my mac username]@[my computer name]。[name of my router]”,而不是GitLab安装中的用户名

我做错了什么?
如何解决这个问题?

Git完全在您的机器上本地提交,您推送这些提交的站点只是读取它们。因此,您的Gitlab帐户与您作为谁提交无关。这对于谁做了什么以及何时做了什么的完整性至关重要

您得到的是Git的默认用户名。Git命令行客户端通常会向您发出警告和说明:

$ git commit
[master (root-commit) cc46c07] Foo
 Committer: Michael Schwern <schwern@Windhund.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 bar
$git提交
[master(root提交)cc46c07]Foo
提交人:Michael Schwern
您的姓名和电子邮件地址已根据自动配置
在您的用户名和主机名上。请检查它们是否准确。
您可以通过显式设置来抑制此消息:
git config--global user.name“Your name”
git config--全局user.emailyou@example.com
执行此操作后,您可以通过以下方式修复用于此提交的标识:
git提交--修改--重置作者
1个文件已更改,0个插入(+),0个删除(-)
创建模式100644条

Github桌面可能有自己的配置。它将使用您的Github标识,而不是您的Gitlab。确保您已登录到首选项->帐户。同时检查Preferences->Advanced并确保您的Git配置标识正确。

您正在使用GitHub桌面,但正在推到Gitlab?听起来很疯狂,但(已经)工作得很好谢谢,您完全救了我一天!