赞
踩
今天在使用git的时候突然提示下面信息:
- *** Please tell me who you are.
-
- Run
-
- git 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.
-
- fatal: unable to auto-detect email address (got 'llll@DESKTOP-J1682P3.(none)')
但是,上面的方法配置的是全局的用户名和邮箱!就是说如果没有单独为项目配置,那提交的所有项目全部都是这个名字和邮箱!
因此你可以使用下面方式:
git config --local user.email "your@example.com"
git config --loacl user.name "your name"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。