15

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

在我想提交的那一刻,我收到以下消息:

在此处输入图像描述

点击修复后:

在此处输入图像描述

我已经填写了信息,但我仍然收到上面的消息。

什么原因?

4

3 回答 3

11

You can set the author information using Terminal. It might be possible that xCode has the author data but it's not actually set in Git config.

Setting your Git username for every repository on your computer

1) Open Terminal.

2) Set a Git username:

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

3) Confirm that you have set the Git username correctly:

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

Setting your Git username for a single repository

1) Open Terminal.

2) Change the current working directory to the local repository where you want to configure the name that is associated with your Git commits.

3) Set a Git username:

$ git config user.name "Mona Lisa"

4) Confirm that you have set the Git username correctly:

$ git config user.name
> Mona Lisa

Source: https://help.github.com/en/articles/setting-your-username-in-git

于 2019-03-27T06:09:47.857 回答
5

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

于 2019-04-25T06:09:21.123 回答
1

只需单击修复并输入您自定义的作者姓名和作者电子邮件即可修复问题。

在此处输入图像描述

但是如果你不小心按了Cancel,忘记修复问题,我们还能开发iOS App吗?

其实是可以的,但是我们在做版本管理和提交的时候会出现问题。因此,为了项目能够成功提交,我们需要打开 Xcode 的 Preferences 窗口,切换到 Source Control 选项卡,在 Git 页面输入 Author Name & Author Email。

在此处输入图像描述

并转到 git 标签并填写如上图所示的信息

于 2021-01-01T04:22:45.793 回答