I have access to a bitbucket repository (not hosted by Atlassian, but inside our company). I can browse the web GUI manually just fine.
But when I do a git clone
, then it redirects to the BitBucket login page and thus git
gives up.
$ git clone https://xyz.abc.def/bitbucket/mystuff
Cloning into 'mystuff'...
fatal: unable to update url base from redirection:
asked for: https://xyz.abc.def/bitbucket/mystuff/repos/mystuff/info/refs?service=git-upload-pack
redirect: https://xyz.abc.def/bitbucket/login?next=/mystuff/repos/mystuff/info/refs?service=git-upload-pack
I am used to git
prompting for a username/password, but for some reason it does not do that here. But then, I am normally using Gitlab or other repository software and am not familiar with BitBucket.
What is the way to make git clone
and BitBucket work together?
I am using git 2.15.1 (Linux) and the BitBucket server is version 5.1.0.
Note that I can not use an Access Key (ssh key pair) for non-technical, organizational reasons outside of the scope of this question.
EDIT: adding the username inbetween (https://myself@xyz.abc.def/...
) does not change the behaviour at all.