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即可。
 

原文地址:https://www.cnblogs.com/flzs/p/12015207.html