下面这个问题是使用一个前端IDE,commit时报出的异常
*** Please tell me who you are.Rungit config --global user.email "you@example.com"git config --global user.name "Your Name"to set your account's default identity.Omit --global to set the identity only in this repository.
解决方法: 单一项目: 单独为项目配置的方法(全局和单独配置都存在的时候会默认使用项目单独配置的): 1.打开项目所在目录,找到隐藏的.git文件夹。注意这个文件夹是隐藏的,显示隐藏出来就行。 2.打开文件夹里的config文件,推荐用nodepad++打开。 3.添加这三行到文件:
[user]name = XXX(用户名称)email = XXXX(邮箱)
或者在.git文件夹执行
git config user.name "Your Name"git config user.email "you@example.com"
全局
git config --global user.email "you@example.com" git config --global user.name "Your Name"