git拉代码报错

1.报错

 

2.原因  git两个账号切换不成功

切换账号方法

1. 查看当前登录账号:

git config user.name

2. 查看当前登录邮箱:

git config user.email

3. 修改用户名和邮箱:

git config --global user.name "Your_username"
git config --global user.email "Your_email"

 注意有空格

原文地址:https://www.cnblogs.com/huanglp/p/11908874.html