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
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.
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.
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.
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]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With