warning: user.name has multiple values
- $ git config --global user.name *******
- warning: user.name has multiple values
- error: cannot overwrite multiple values with a single value
- Use a regexp, --add or --replace-all to change user.name.
- 复制代码
问题原因:user.name 有多值冲突
解决方法如下:
思路:重置user.name和user.email
- $ git config --global --replace-all user.email "输入你的邮箱"
- $ git config --global --replace-all user.name "输入你的用户名"
- 复制代码