修改当前的project的命令:
git config user.name 你的名字;
git config user.email 你的邮箱;
修改全局的
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 --list
发现user.name有多个值
然后用
$ git config --global --replace-all user.email "输入你的邮箱"
$ git config --global --replace-all user.name "输入你的用户名"