Forums

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

Is there any rest api for bitbucket server for check out in sourcetree?

Khushboo Mulani December 6, 2018

 Hi Team,

I am looking for a rest api for checking out a branch in sourcetree but unable to find any. 

Thanks

 

2 answers

0 votes
Khushboo Mulani December 6, 2018

Atlassian

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2018

Hi Khushboo,

 

A REST API is used to execute actions on the server, while Sourcetree is a client application - what are you trying to achieve?


Cheers,

Christian

Premier Support Engineer

Atlassian

Khushboo Mulani December 6, 2018

Hi Christian,

So is there any rest api available to check out a branch, irrespective of the client application we are using?

Thanks

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2018

Hi,

A branch checkout always happens on a client, so a REST API makes no sense for that operaton.

Cheers,

Christian

Premier Support Engineer

Atlassian

Khushboo Mulani December 6, 2018

Hi, 

 So how do I initiate checkout through my client application, say, I have my own application integrated with bitbucket application and I want the checkout of a branch through my application on sourcetree?

Thanks

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2018

Hi,

You will clone the repository using git clone, which creates a clone of the repository on your local machine, and on that clone you execute git checkout - the checkout of a branch does not interact with the server at all.

Sourcetree is a GUI for git essentially that allows you to do some of these things graphically rather than by executing git commands on the command line.

Maybe our git tutorial at https://www.atlassian.com/git is interesting to go through if you don't know it yet.

Cheers,

Christian

Premier Support Engineer

Atlassian

Khushboo Mulani December 6, 2018

Hi,

I am aware of doing the same with GUI(as provided by sourcetree) and also using the git commands, but I want to achieve this(clone the repository) using rest api and then somehow get the checkout of a branch done.

 

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events