通过git拉取github/gitlab上的Pull Request(PR)/Merge Request(MR)到本地进行code review
·
通过git拉取github/gitlab上的Pull Request(PR)/Merge Request(MR)到本地进行code review
Github:
git fetch origin pull/3188/head:pr3188
3188是PR的id
https://github.com/apache/carbondata/pull/3188
Gitlab:
git pull remote refs/merge-requests/3188/head
3188是MR的id
如果想新建分支,可以加上分支名,比如pr2209:
git pull origin refs/merge-requests/2209/head:pr2209
git checkout pr2209
origin 为远程库的名称, git remote -v可以查看有哪些。
更多推荐
所有评论(0)