码云 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,以管理员身份运行,切换到代码目录,再次输入即可

你可能感兴趣的:(码云 fatal: Authentication failed for)