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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/55368503/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:55:15  来源:igfitidea点击:

No author information was supplied by the version control system

swiftxcodegitxcode10swift5

提问by Nizzam

I just updated my Xcode to version 10.2(10E125).

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

A moment I want to commit, I get this message:

我想提交的那一刻,我收到了这条消息:

enter image description here

在此处输入图片说明

After I click on fix:

在我点击修复后:

enter image description here

在此处输入图片说明

I have filled in the information, but I'm still getting that message above.

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

What's the reason?

什么原因?

采纳答案by Philip Borbon

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.

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

Setting your Git username for every repository on your computer

为计算机上的每个存储库设置 Git 用户名

1) Open Terminal.

1) 打开终端。

2) Set a Git username:

2) 设置一个 Git 用户名:

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

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

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

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

Setting your Git username for a single repository

为单个存储库设置 Git 用户名

1) Open Terminal.

1) 打开终端。

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

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

3) Set a Git username:

3) 设置一个 Git 用户名:

$ git config user.name "Mona Lisa"

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

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

$ git config user.name
> Mona Lisa

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

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

回答by ak_ninan

Click on "Fix" and provide your Git username and email. This fixed my issue.

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