Incorrect credentials.Request response:401 Unauthorized

Problem description: git push reports HTTP Basic: Access denied error

 

Reason: The username and password of the local git configuration are inconsistent with the username and password registered on gitlabs.


Solution:
1. If the account password has changed, use this command git config –system –unset credential.helper to re-enter the account password and it should be able to solve it
2. If the problem cannot be solved with the first command, then use this command:
git config –global http.emptyAuth true
3. If the above two methods do not work, use the following methods:

Go to Control Panel "User Accounts" Credential Manager? Windows Credentials "Ordinary Credentials, find git in it, click to edit the password, update to the latest password, you can operate normally

 

 

 

git config --global user.name wb-sy772073

git config --global user.email [email protected]

Guess you like

Origin blog.csdn.net/qq_39839828/article/details/105418928