pycharm提交commit时git报错:please tell me who you are


一、错误

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,成功