How to get BitBucket branch url?

会有一股神秘感。 提交于 2020-12-30 08:16:08

问题


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


回答1:


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]


来源:https://stackoverflow.com/questions/38274595/how-to-get-bitbucket-branch-url

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!