Checkout bitbucket pull requests locally

后端 未结 9 517
再見小時候
再見小時候 2020-12-08 02:48

I found this gist, showing how to check out a pull request locally from GitHub.

I\'m using bitbucket and I\'m looking for a similar function.

Can you help m

9条回答
  •  臣服心动
    2020-12-08 03:11

    One may fetch the code from Bitbucket Server's pull requests using:

    git fetch origin refs/pull-requests/$PR_NO/from:$LOCAL_BRANCH
    

提交回复
热议问题