首页 > 其他 > 详细

git配置中出现多个重复名字:More than one value for the key user.name

时间:2018-07-21 00:03:38      阅读:269      评论:0      收藏:0      [点我收藏+]

 

#### 查看配置
```
git config --list
```

 

 

#### 查看所有的名称
```
git config --get-all user.name
```

 

 

#### 查看所有的配置
```
git config -l --show-origin
```


#### 判断出现多值的位置 local global system
```
it config --get-all user.name                                          #local repo git config file)
git config --global --get-all user.name                           #user config file)
git config --system --get-all user.name                         #system git config file)
```

 

#### 将出现多值区域的值替换
```
git config [--local/--global/--system] --replace-all key value
```

 

 

参考网址(需要梯子):

https://stackoverflow.com/questions/4310974/more-than-one-value-for-the-key-user-name-git

 

 

 

有不懂的可以加微信:invictus090,备注“博客园”

git配置中出现多个重复名字:More than one value for the key user.name

原文:https://www.cnblogs.com/max520liuhu/p/9344609.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!