首页 > git提示unable to auto-detect email address

git提示unable to auto-detect email address


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


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

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

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


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


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


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

注释:email和名称 随便

或者 看图


-m后面要加空格

【热门文章】
【热门文章】