git提示unable to auto-detect email address

浏览:34日期:2023-10-14

问题描述

git提示unable to auto-detect email address我输入 git config --global user.email '我的邮箱' git config --global user.name '姓名'之后,commit还是提示这个,这个邮箱和姓名是之前注册过的,还是随便输入,我刚配置好git,没发现哪里有注册过啊,小白求教

问题解答

回答1:

-m后面要加空格

回答2:

很明显,你的Config没有配置成功。邮箱个名字是可以重复使用的。

回答3:

安装 TortoiseGitTortoiseGit 安装完成。在桌面空白处点击右键,右键菜单中会加入TortoiseGit快捷键选择“Settings”,进入“Settings-TortoiseGit”界面,选择“General”选项卡,设置本机器的 git 路径,并选择语言为 简体中文;选择“Network”选项卡,设置SSH路径。SSH 默认在安装 Git 时就安装了;选择“Git”选项卡,设置用户名、邮箱和 key。如果暂时在本地使用就只需将用户名和邮箱添加,而“Signing key”会自动生成。在此处添加用户名和邮箱

回答4:

在git bash 命令行中,后续添加:git config --global user.email '你的email'git config --global user.name '你的名称'

注释:email和名称 随便

或者 看图git提示unable to auto-detect email address

回答5:

我用git config --global user.name “...” 和git config --global user.email '*' 后我的Xcode-beta还是不能commit,可是我在.git文件夹里把config文件里添加了 [user]

name = **email = **@qq.com

后,commit就不报身份确认错误了,这是为什么呢?难道设置的全局名称和email没有用?

回答6:

引号前留空格

相关文章: