The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
SERVER
VERSION
8.14.1
TAGS
AUG Leaders

Atlassian Community Events