版本控制系统未提供作者信息

问题描述 投票:5回答:2

我刚刚将我的Xcode更新到版本10.2(10E125)。

我想提交的那一刻,我得到这样的信息:

enter image description here

点击修复后点击:

enter image description here

我填写了这些信息,但我仍然收到上述信息。

什么原因?

swift xcode git xcode10 swift5
2个回答
3
投票

您可以使用终端设置作者信息。 xCode可能有作者数据,但实际上并没有在Git配置中设置。

Setting your Git username for every repository on your computer

1)打开终端。

2)设置Git用户名:

$ git config --global user.name "Mona Lisa"

3)确认您已正确设置Git用户名:

$ git config --global user.name
> Mona Lisa

Setting your Git username for a single repository

1)打开终端。

2)将当前工作目录更改为要在其中配置与Git提交关联的名称的本地存储库。

3)设置Git用户名:

$ git config user.name "Mona Lisa"

4)确认您已正确设置Git用户名:

$ git config user.name
> Mona Lisa

资料来源:https://help.github.com/en/articles/setting-your-username-in-git


0
投票

单击“修复”并提供您的Git用户名和电子邮件。这解决了我的问题。

© www.soinside.com 2019 - 2024. All rights reserved.