Git报错:fatal: Authentication failed for ‘https://gitee.com/.......‘

提交代码到码云,Git报错如下:

Gavin: Incorrect username or password (access token)
fatal: Authentication failed for 'https://gitee.com/......'
  • 1很明显说明码云的认证失败,即用户名,密码输入错误。

使用如下指令重置用户名密码:直接在vscode输入下面指令:

git config --system --unset credential.helper
  • 输入之后会在上方让你重新输入账号密码:一般账号是手机号,密码自己设置的
  • 1然后再次提交,重新输入用户名密码即可。

猜你喜欢

转载自blog.csdn.net/lijingxiaov5/article/details/124717239