Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get BitBucket branch url?

Tags:

bitbucket

I have a bitbucket repository and I know i can click on Actions tab and click on clone to get the http url of the repository. Now, I have multiple branches in the repository and I am planning to use Jenkins CI to build from a particular branch. Is there a way to get the url of the specific branch in my repository?

Regards

like image 546
AJM Avatar asked Jul 08 '16 20:07

AJM


People also ask

How do I find my Bitbucket URL?

Remote link can be found on top right side of the Source screen in your repository(https://bitbucket.org/<teamName_or_username>/<repo-name>/src). If you are using latest version of bitbucket cloud, there should be Clone button on right top.

How do I find my remote repository URL in Bitbucket?

If you are using GitHub, you can find the remote URL on the sidebar of the repo's page. If you are using Bitbucket, you can find the remote URL at the very top of the repo's page.

How do I pull a branch in Bitbucket?

The Bitbucket interface gives you the basic command for checking out a branch. If you're using Sourcetree, Bitbucket gives you a single button checkout. In the repository's Branches, click the branch you want to checkout. Press the Check out button to display the appropriate check out command.


1 Answers

It should be

https://bitbucket.org/[username]/[repo_name]/branch/[branch_name]

Just replace username, repo_name, and branch_name with your own information.

You can git clone the branch with its URL:

git clone https://bitbucket.org/[username]/[repo_name]/branch/[branch_name]
like image 81
Chong Tang Avatar answered Oct 02 '22 10:10

Chong Tang