如果本地之前已经保存了一个github账号, push以后显示之前的账号用户名,所以,需要把本地用户名给改一下。

解决方式:

git config --global user.name "Your_Username"
git config --global user.email username@xxx.com

然后,你可看一下这个文件:

vim ~/.gitconfig

Git操作切换本地帐号

完毕

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2021-11-06
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2022-02-07
  • 2021-12-05
  • 2022-02-14
  • 2021-05-28
  • 2021-07-27
  • 2021-04-01
  • 2021-08-06
相关资源
相似解决方案