如何获取BitBucket分支网址? [英] How to get BitBucket branch url?

查看:122
本文介绍了如何获取BitBucket分支网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个bitbucket存储库,我知道我可以单击操作"选项卡,然后单击克隆"以获取该存储库的http网址.现在,我在存储库中有多个分支,并且我计划使用Jenkins CI从特定分支进行构建.有没有办法在我的存储库中获取特定分支的URL?

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?

致谢

推荐答案

应该是

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

只需用您自己的信息替换用户名,repo_name和branch_name.

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

您可以使用其URL git克隆分支:

You can git clone the branch with its URL:

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

这篇关于如何获取BitBucket分支网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆