ubuntu git authentication failed code example

Example 1: authentication failed for git

WIN+S (windows search) > Credential Manager > Credential Manager > Edit
   --OR--
WIN+R (windows run) > rundll32.exe keymgr.dll, KRShowKeyMgr > Edit

Example 2: git authentication failed

Try below solution which works for me:

1: go to Windows Credential Manager. This is done in a EN-US Windows by pressing the Windows Key and typing 'credential'. In other localized Windows variants you need to use the localized term (See comments for some examples).

alternatively you can use the shortcut control /name Microsoft.CredentialManager in the run dialog (WIN+R)

2: Edit the git entry under Windows Credentials, replacing old password with the new one