如何定义拉请求目标Git分支?对于Stash

时间:2016-01-22 09:10:33

标签: git branch fetch pull-request bitbucket-server

取:

git fetch --tags --progress ssh://git@gitscm.company.com/project/repository.git +refs/pull-requests/*:refs/remotes/origin/pull-request/*    

结果:

 + 6f39c4e...b2fd4cd refs/pull-requests/1139/merge -> origin/pull-request/1139/merge  (forced update)
 + b4f274b...dd71491 refs/pull-requests/1499/merge -> origin/pull-request/1499/merge  (forced update)

但是没有关于目的地分支的信息 怎么定义它?

1 个答案:

答案 0 :(得分:1)

使用REST API,我认为它可以帮助您。