0

I haven't pushed to this repo in a few weeks, but now i can't. I ran into an issue like this before and remedied it by clearing git credentials as i saw in another StackOverflow post. However none of the questions i have found have remedied this issue.

This is a new branch that i'm setting up and trying to push, i'm also up to date on the latest Git as of 6/5/2018, and i don't have 2FA set up on this account as of right now.

Any and all help in fixing this would be greatly appreciated because i can't find a way to fix this at all through their documentation or stack overflow.

$ git push --set-upstream origin updateToUnity2018.1
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/buffet-time/project-top-down.git/'
Daniel Turcich
  • 1,494
  • 2
  • 21
  • 43

3 Answers3

2

After submitting a support request on GitLab

I was pointed to this stackoverflow post, and this fixed my issue which ended up being GitLab for some reason not bringing up git credentials in the normal way.

Git: Failed to erase credential: Element not found

Daniel Turcich
  • 1,494
  • 2
  • 21
  • 43
  • Thank you! I've been stuck on this and trying various solutions my searching has turned up, but nothing worked. Opening up the credential manager and deleting the Windows Credentials for the remote repository worked perfectly. – PeteH Oct 17 '18 at 16:24
0

I was also facing same issue remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://:@gitlab********

so i opened terminal and checked for cat gitconfig and removed [url "https://:@gitlab.***"] insteadOf = https://gitlab.*****/ and then i tried pulling or pushing it asked me username and password again, and it worked.

Cheers.

0

i had the same issue but this was after the 2fa authentication my solution was use other terminal outside vscode and this prompted to enter the user name and password

Danamorah
  • 64
  • 3