git 常用操作命令
1. 修改 提交用戶名和邮箱
- 修改当前项目的用户名和邮箱地址
git config user.name "username"
git config user.email "email"
- 修改全局用户名和邮箱地址
git config --global user.name "username"
git config --global user.email "email"
- 查看git用户名和邮箱地址命令
git config --global user.name
git config --global user.email
正常情况下上面命令能解决问题
碰到的问题当改变用户名时,报错误提示
$ 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.
这里 考虑用你最新的改的用户名替换
git config --global --

最低0.47元/天 解锁文章
518





