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

Clone repository with repository token

Oleh735 February 21, 2024

Hi! I have a problem (Authentification failed error)with clonning repository using Http access token genereted on repository level(token has repository admin permission)

Syntacsis which i use 

When i use my personal token it's working!
What could be the problem? And what username should i use for repository token? 

1 answer

1 accepted

1 vote
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2024

Hello @Oleh735 ,

thank you for reaching out to Community!

The syntax to clone a repository using an access token is slightly different than the one you shared in the description.

Following is the correct syntax you can use to authenticate the clone operation with a Repository Access Token : 

git clone https://x-token-auth:<TOKEN><workspace>/<repository>.git

You just need to replace the field <TOKEN> with your actual token generated in the repository, and also provide the <workspace> and <repository>. The <token> does not need to be encoded, it's the raw value of the token you received when creating it in the UI.

Thank you, @Oleh735 !

Patrik S 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events