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