Hey folks,
I’ve been using git for a while with my team but still feel like an absolute begginner in it. I’m trying to clone a repository using http, and I’m getting the following errors using SourceTree 3.4.7:
Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://gitlab.com/[group name]/[project name.git]
Output:
Error: remote: HTTP Basic: Access denied
fatal: Authentication failed for ‘https://gitlab.com/[group name]/[project name.git]/’
I also get a note at the top which says “cloning is easier if you set up a remote account”, but I do have a remote account. Interestingly, when I click that link with the text mentioned above, it takes me to a list of remotes and doesn’t show the one(s) I’ve created. Then if I try to add an account, it says the account already exists.
Other relevant information: the authentication is done with a personal access token and says “authentication ok” when I try to edit the account that I’m using.
I’m not sure what’s going on or why this has worked on all of my other computers in the past. I’m thinking maybe it’s a Windows 11 thing? Or something else? Any help would be very appreciated!
Thanks,
Rich