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

Submit the code to the code cloud, and Git reports the following error:

Gavin: Incorrect username or password (access token)
fatal: Authentication failed for 'https://gitee.com/......'
  • 1 It is obvious that the authentication of the code cloud fails, that is, the user name and password are entered incorrectly.

Use the following command to reset the username and password: Enter the following command directly in vscode:

git config --system --unset credential.helper
  • After entering, you will be asked to re-enter the account password at the top: the general account is the mobile phone number, and the password is set by yourself
  • 1 Then submit again, and re-enter the username and password.

Guess you like

Origin blog.csdn.net/lijingxiaov5/article/details/124717239