When I attempt
git clone https://<our repository>.git --progress
I get the error
fatal: Authentication failed for 'https://<our repository>.git'.
My first attempts were in a Docker container running Linux on a windows machine.
git clone https://<username - the email I use for Bitbucket>:<my personal access token>@<url of our repository>.git
I have two PATs. One is read-only and one has read and write privileges. Neither worked.
git config --global credential.helper store
hoping that it would find the credentials (username: email i use with Bitbucket/ password: read-write PAT) that I have stored locally on Windows. Then I ran
git clone https://<our repository>.git --progress
after nearly 20 minutes it returned
fatal: Authentication failed for 'https://<our repo>.git
'https://<email>:<PAT>@<repo url>.git'
(I tried it with an '@' in the email and also with '%40' in place of the '@'. ) I then ran the commands
git config --global credential.helper "store --file .git-credentials" --add
git clone https://<our repository>.git --progress
This failed with the same error.
then
git clone https://<our repository>.git --progress
A form entitled The Windows Security Git Credential Manager appeared and asked for a username and password. Again I entered my email and PAT. Failure. Then I repeated these steps and entered the password I use to log into Bitbucket. That didn't work either.
If anyone here could suggest something else I might try, I would be deeply grateful.
Another update:
I can also clone from Gitlab into the Docker container.
Update:
I tried cloning one of our repos hosted on Gitlab into the Windows environment. That worked with no issue. My authentication problem seems to be with Bitbucket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update:
We've resolved this issue at our end.
Dear moderator: I think you should delete this question, as the problem was actually specific to the way our corporate network works. If someone happens across this post, and has the same problem I was having, their resolution will probably be different.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.