git commit时候出现的问题 git commit 提交的时候,出现*** Please tell me who you are. git config --global 。。。问题

git commit 提交的时候,出现*** Please tell me who you are. git config --global 。。。问题

复制代码
 1 $ git commit -a -m 'v6'
 2 
 3 *** Please tell me who you are.
 4 
 5 Run
 6 
 7   git config --global user.email "[email protected]"
 8   git config --global user.name "Your Name"
 9 
10 to set your account's default identity.
11 Omit --global to set the identity only in this repository.
12 
13 fatal: unable to auto-detect email address (got 'Administrator@WIN-20170405AQW.(
14 none)')
复制代码

解决方案: 见提示就知道, 要您填上你得注册的邮箱和昵称,例如:

1 git config --global user.email "[email protected]"
2 git config --global user.name "qichueng"
复制代码
 1 $ git commit -a -m 'v6'
 2 
 3 *** Please tell me who you are.
 4 
 5 Run
 6 
 7   git config --global user.email "[email protected]"
 8   git config --global user.name "Your Name"
 9 
10 to set your account's default identity.
11 Omit --global to set the identity only in this repository.
12 
13 fatal: unable to auto-detect email address (got 'Administrator@WIN-20170405AQW.(
14 none)')
复制代码

解决方案: 见提示就知道, 要您填上你得注册的邮箱和昵称,例如:

1 git config --global user.email "[email protected]"
2 git config --global user.name "qichueng"

猜你喜欢

转载自www.cnblogs.com/alexzhang92/p/9550191.html