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

标签 swift xcode git xcode10 swift5

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

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

enter image description here

点击修复后:

enter image description here

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

这是什么原因?

最佳答案

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

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

1) 打开终端。

2) 设置 Git 用户名:

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

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

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

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

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

关于swift - 版本控制系统未提供作者信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55368503/

相关文章:

xcode - 键盘无响应

ios - 核心数据一对多 Swift

swift - 更改 UINavigationBar 按钮图像

ios - Xcode 6.3 和 6.2 问题 : Xcode cannot run using the selected device

git - 我无法在 Windows 7 上通过 Git 登录 heroku

git - 克隆我的 repo 的人可以从早期提交中获取我的 api_key 吗?

linux - 当文件通过 FTP 添加到 git 存储库时,在脚本中使用 inotifywait 自动执行 git 提交

ios - UITableView 和 UIButtons swift 中的多个部分

ios - 来自 Xib 文件错误的 Swift init ViewController

iphone - 通过推送和模态 Segue 重用 View Controller