为什么 TortoiseGit 不断询问我的用户信息
Why TortoiseGit keep asking for my user information
TortoiseGit 一直询问我的用户名和电子邮件,但我已经设置了。
我也已经尝试设置它,但是当我点击确定时,它只是将我重定向回相同的 window。
我已经修好了
我确实编辑了 ~/.gitconfig 文件:
[user]
name =
email =
我又把名字和邮箱删了,然后保存再放回去。多么奇怪的解决方案。
Git需要您的用户信息进行提交,包括用户名和用户电子邮件。所以,你必须在提交之前先配置它们。
从您提供的数字来看,您可能缺少用户名。
顺便说一句,大多数人通常在全局级别配置它们,步骤:
- 打开 TortoiseGit 设置 对话框
- 转到Git页面
- 单击“配置源”组框下的全局单选框
- 填写“用户信息”组框下的姓名和电子邮件文本字段
(如果选中继承复选框,请先取消选中它们。)
- 按下 确定 按钮
[注意]
TortoiseGit 将在您第一次访问 Git 页面时显示以下消息框:
Git uses the concept of a hierarchical configuration.
I.e. there are multiple levels; settings in higher levels override values in lower levels.
The Effective tab shows you the effective values for the current scope (read-only).
Select any level to see the values stored there.
In order to change settings select a level, enter the values and select where to store to.
在 git 远程中,使用 HTTPS 存储库 URL 而不是 HTTP
TortoiseGit 一直询问我的用户名和电子邮件,但我已经设置了。
我也已经尝试设置它,但是当我点击确定时,它只是将我重定向回相同的 window。
我已经修好了
我确实编辑了 ~/.gitconfig 文件:
[user]
name =
email =
我又把名字和邮箱删了,然后保存再放回去。多么奇怪的解决方案。
Git需要您的用户信息进行提交,包括用户名和用户电子邮件。所以,你必须在提交之前先配置它们。
从您提供的数字来看,您可能缺少用户名。
顺便说一句,大多数人通常在全局级别配置它们,步骤:
- 打开 TortoiseGit 设置 对话框
- 转到Git页面
- 单击“配置源”组框下的全局单选框
- 填写“用户信息”组框下的姓名和电子邮件文本字段
(如果选中继承复选框,请先取消选中它们。) - 按下 确定 按钮
[注意]
TortoiseGit 将在您第一次访问 Git 页面时显示以下消息框:
Git uses the concept of a hierarchical configuration. I.e. there are multiple levels; settings in higher levels override values in lower levels.
The Effective tab shows you the effective values for the current scope (read-only).
Select any level to see the values stored there. In order to change settings select a level, enter the values and select where to store to.
在 git 远程中,使用 HTTPS 存储库 URL 而不是 HTTP