Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I have created the repo access token and now with that token i am not able to clone/pull repo

devharrison-kern
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2024

Under repo setting -> access token 

i created the token with permission like pull/push

but with that token i am not able to clone the repo 

i tried setting the 

git config user.email

that is provided for created access token

 

need urgent help on this

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2024

Hello @devharrison-kern ,

and welcome to the Community!

To use a repository access token as the authentication when cloning a repository, the following command should be used:

git clone https://x-token-auth:{repository_access_token}@bitbucket.org/{workspace}/{repository}.git 

Changing the placeholders {repository_access_token}, {workspace} and {repository} with the actual values (without the curly braces). 

You can find more details and examples in the Include the Repository Access Token in the URL  documentation

Could you confirm if you used the syntax above when trying to clone the repository? If not, could try try again using that command and let us know how it goes?

In case you are still facing issues, please share with us the full command and the log output containing the error.

Thank you, @devharrison-kern !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events