简体   繁体   中英

GitLab - HTTP Basic: Access Failed

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/'

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

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.

我有同样的问题,但这是在 2fa 身份验证之后,我的解决方案是使用 vscode 之外的其他终端,这提示输入用户名和密码

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM