Git 清除缓存账密

爱⌒轻易说出口 提交于 2019-12-10 11:15:44

[已解决] 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即可。
 

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