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,备注“博客园”

posted @ 2018-07-20 23:23  神毓·逍遥  阅读(1317)  评论(0编辑  收藏  举报