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

 

#### 查看配置
```
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,备注“博客园”

仙衣眠云碧岚袍,一襟潇洒,两袖飘飘。玉墨舒心春酝瓢,行也逍遥,坐也逍遥。
原文地址:https://www.cnblogs.com/max520liuhu/p/9344609.html