Chang git account on VScode

浪尽此生 提交于 2021-02-08 06:39:38

问题


I just try to push a repo to github , but I get this dialog

PS : 4495b is the old account I can't find a way to change it.

I tried

git config --global --unset credential.helper
  • Reinstall git and reconfigure it
  • Reinstall VScode

Any ideas how to refresh the given account?


回答1:


If you confirm that git config credential.helper is not set, check first the remote URL with

cd /path/to/repo
git remote -v

If it is an SSH URL, make sure its associated ~/.ssh/id_rsa(.pub) are not the private/public key of your old account.
Or that ~/.ssh/config does not reference the SSH private key of your old account.



来源:https://stackoverflow.com/questions/61882787/chang-git-account-on-vscode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!