Hi Team,
I am looking for a rest api for checking out a branch in sourcetree but unable to find any.
Thanks
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
So is there any rest api available to check out a branch, irrespective of the client application we are using?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.