一、错误

pycharm同步代码,提交commit时git报错: commit failed with error   please tell me who you are

 二、原因

第一次提交,或者长时间未提交代码,需要对git设置账户信息

三、步骤

1.pacharm 中打开terminal运行环境

执行

git config --global user.name "你的用户名"
git config --global user.email "你的邮箱地址"
设置用户名和邮箱地址

 2.检查git

执行

git config --global --list

检查用户名和邮箱地址是否成功正确

 四、提交

账户信息添加完成,重新commit,成功

posted on 2025-07-04 16:17  xiaoguan-bky  阅读(111)  评论(0)    收藏  举报