码云 fatal: Authentication failed for

最近push代码到码云时,push失败,提示fatal: Authentication failed for,解决方法就是:

在git命令行中输入

git config --system --unset credential.helper

不过可能会报

error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied

这时打开cmd,以管理员身份运行,切换到代码目录,再次输入即可




参考链接:https://www.jianshu.com/p/18e11b567509

posted @ 2019-06-05 14:16  胡里糊涂  阅读(1355)  评论(0编辑  收藏  举报