I'm trying to clone a repository into my local machine using HTTPS clone. The windows credential manager asked for username and password/token. I have entered my API token but it is giving authentication failed.
My user has access to repository as I'm able to clone when I add SSH key and clone so permission issue is not there.
I saw two options - App Passwords (depreciated) and API token. The setup is not letting me generate App Passwords as it is depreciated and API tokens are not working.
How can you clone using HTTPs in this case?
Hey @Priyal Jadav
Welcome to the community!
To clone using an API token, please check our documentation below:
Essentially, your clone url should look similar to this:
git clone https://{bitbucket_username}:{api_token}@bitbucket.org/{workspace}/{repository}.git
For example:
git clone https://myusername:myapitoken123@bitbucket.org/{workspace}/{repository}.git
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.