无法更改git帐户
我尝试推送到我的存储库,但我得到了下面的错误
git push origin master remote: Permission to PhanVanLinh/phanvanlinh.github.io.git denied to edgarphan. fatal: unable to access 'https://github.com/PhanVanLinh/phanvanlinh.github.io.git/': The requested URL returned error: 403  之前,我正在使用用户名edgarphan但我已经将其更改为PhanVanLinh但它仍然保持edgarphan 。 我试图删除项目并再次克隆,卸载混帐并重新安装,但它不会工作。 
  
 
  全局configuration文件  
 
我该如何解决这个问题? 任何帮助或build议将不胜感激。
 这与你的user.name / user.email设置没有任何关系:那些是在提交中的作者身份。 当您推送到回购时,它们不用于身份validation。 
 如果Git不要求你input你的GitHub(新)用户名/密码,这就意味着Git for Windows正在使用一个名为“manager”的Git证书助手(做一个git config credential.helper来确认) 
含义:正在caching您的旧凭据,并自动重新使用它们。
 在这种情况下,请转到Windows开始菜单(  ),input“凭证”并selectWindows工具“ Windows凭证pipe理器 ”。
  ),input“凭证”并selectWindows工具“ Windows凭证pipe理器 ”。 
  
 
 其中,您将find一个条目git.https://github.com ,您可以编辑它,并在其中input新的GitHub用户名/密码。  
 
然后再试一次。
尝试找出gitconfiguration文件。 对于Windows机器,它可能位于
 C:\Users\<user_name>\.gitconfig 
这个命令也可以打开configuration文件,然后你可以编辑和保存
 git config --global -e 
并在设置configuration后
 cd /path/to/new/local/repo git remote add origin https://github.com/PhanVanLinh/phanvanlinh.github.io.git git push -u origin master