使用命令行修改git用户名和邮箱

1.打开本地命令行工具(windows系统直接使用快捷键Window+r,然后出入cmd回车)

2.输入git config --list   查看相关信息

3.输入git config --global --replace-all user.email “我的邮箱”

4.输入git config --global --replace-all user.name “我的用户名”

5.输入git config --list   查看是否修改成功即可

猜你喜欢

转载自blog.csdn.net/weixin_44191318/article/details/126059266