git 配置和修改全局用户名和邮箱

git config --global user.name "yourName"

git config --global user.email "yourEmail"

查看设置的命令:

git config --list    

然后通过以下命令既可以修改设置的全局用户名和邮箱:

git config --global --replace-all user.name "yourNewName"

git config --global --replace-all user.email "yourNewEmail"

然后通过查看设置的命令再次查看

猜你喜欢

转载自blog.csdn.net/quliuwuyiz/article/details/86521273