Git报错:Please tell me who you are.
发布日期:2021-05-09 04:16:23 浏览次数:18 分类:博客文章

本文共 360 字,大约阅读时间需要 1 分钟。

Git在提交的时候报错 Please tell me who you are.

报错 Please tell me who you are. 具体如下:

原因:明确报错、请告诉我你是谁。意思是你在提交的时候、我不知道你是谁、也就是说你的GIT还没有配置完成、需要配置完成才可以执行。

解决:

方法 1:使用命令
注意:报错中明确提示run 两个命令、需要将其中的邮箱、名字改成你自己的> git config --global user.email "you@example.com"> git config --global user.name "Your Name"

方法 2:通过找到对应的配置文件去修改配置文件
编辑到.git文件夹下的config文件、在其末尾追加user的name和email便可、具体如下:

上一篇:Git报错:Your branch is up to date with 'origin/master'.
下一篇:Git报错:Permission denied (publickey)

发表评论

最新留言

表示我来过!
[***.240.166.169]2025年04月16日 02时55分09秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章