6

When installing my Git repository (GitKraken with GitLab), I entered the wrong password. So Git returns this error:

"remote: HTTP Basic: Access denied
fatal: Authentication failed for'https://gitlab.com/mygitproject/'"

It's not offering the option to retype my password. So I'm stuck....

7
  • Does this solve your problem ? stackoverflow.com/questions/44246876/… Commented May 25, 2018 at 10:02
  • Consider using ssh instead. Commented May 25, 2018 at 10:07
  • Which OS you are using? Commented May 25, 2018 at 10:13
  • I'm using Windows 10. Grammy: This solution doesn't work for me. Commented May 25, 2018 at 10:44
  • I also uninstalled / Reinstalled Git, without success. Commented May 25, 2018 at 13:09

3 Answers 3

12

I recently had the same problem on Windows. My credentials was recently been updated in Active Directory. Git bash stores credentials in the Windows Vault using Generic Credentials in the 'Control Panel > User Accounts > Credential Manager'. After updating my password to match the current value I was able to 'git push'.

Sign up to request clarification or add additional context in comments.

Comments

4

I would always advise to use SSH, but if you insist on using this approach you should be able to go (in GitKraken) to

Preferences->Authentication

and in General tab select the option to

'Forget all Username/Passwords'

enter image description here

Comments

2

In my case my password was expired and it was not allowing me to enter my new password-

Below is the command I need to run to fix this issue:-

git config --global credential.helper wincred

After running above command it asks me again my updated username and password.

Here is the source for more details.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.