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

Clone repo with repository specific token

Oleh735 March 1, 2024

Hi I have self hosted bitbucket server(Atlassian Bitbucket v8.14.1) and i'm trying to clone repository with repository specific token using this command

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

Could someone explain to me what should i use as a 'workspace' because when use project name or my user name i'm getting 'Not Found' error.

1 answer

1 accepted

1 vote
Answer accepted
Aman Shrivastava
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 3, 2024

Hi Oleh735,

It appears that you are trying to clone the repository using the incorrect clone URL. Workspaces are a notion found in Bitbucket cloud, not in Bitbucket DC/Server.
In BitbucketDC/Server, you may obtain the clone URL of any repository by browsing it and clicking the clone button.
Please review the HTTP access tokens KB article which outlines multiple ways for cloning a repository using the access token.

Regards,
Aman

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.14.1
TAGS
AUG Leaders

Atlassian Community Events