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
No author information was supplied by the version control system
提问by Nizzam
采纳答案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 用户名和电子邮件。这解决了我的问题。