Git 清除缓存账密

[已解决] git push 报错:git: 'credential-manager' is not a git command. See 'git --help'.

解决方案
1)运行 git config --list,部分输出如下:

core.editor=nano
credential.helper=manager
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/xxx.git
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
branch.master.remote=origin
branch.master.merge=refs/heads/master

2)运行git config --global --unset credential.helper,之后再git push orgin master即可。
 

posted @ 2019-12-10 10:40  飞龙在生  阅读(3751)  评论(0编辑  收藏  举报