如果你不知道现在本地Git用的帐号是什么,你可以输入

git config user.name         查看用户名 

git config user.email         查看用户邮箱

修改用户名和邮箱的命令

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

有一点要注意, user.name/email后面千万记得加空格,否则你就是提交了,Git也不会提醒你配置出错

上边的操作完还没有结束,需要在凭据管理器中找到Git地址修改用户名和密码
Git如何切换账户

相关文章:

  • 2021-11-06
  • 2022-12-23
  • 2021-12-14
  • 2021-12-19
  • 2022-01-06
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-24
  • 2021-08-06
  • 2021-12-31
  • 2022-12-23
  • 2022-02-07
  • 2021-12-24
  • 2022-02-03
相关资源
相似解决方案