git如何快速拉取已经提交的mr进行验证

参考:https://stackoverflow.com/questions/44992512/how-to-checkout-merge-request-locally-and-create-new-local-branch

Pull merge request to new branch

复制代码
git fetch origin merge-requests/REQUESTID/head:BRANCHNAME
i.e git fetch origin merge-requests/10/head:file_upload

Checkout to newly created branch
git checkout BRANCHNAME
i.e (git checkout file_upload)

OR with single command
git fetch origin merge-requests/REQUESTID/head:BRANCHNAME && git checkout BRANCHNAME
i.e git fetch origin merge-requests/18/head:file_upload && git checkout file_upload
相关推荐
爱码小白1 天前
GIT版本控制
git
遇见火星1 天前
Git 入门指南:从零开始掌握版本控制的魔法
git·版本控制
星际编程喵1 天前
研发流程规范:Git Commit 书写标准
git·gitee·github·gitcode
to future_1 天前
git超详细教程
git
GL_Rain1 天前
pip安装git库出现ModuleNotFoundError: No module named ‘xxx‘
git·pip
大白要努力!1 天前
Android 项目历史提交远程仓库资源过大,如何清理历史提交中无用的大文件
android·git
一点事1 天前
git:已有主分支,创建空分支,管理项目
git
指尖跳动的光1 天前
git 提交报 Updates were rejected because the tip of your current branch is behind
git
hkNaruto1 天前
【gitlab】通过 `pre-receive` 钩子控制 MR 合并时的分支路径合并方向,阻止未经允许的合并路径
elasticsearch·gitlab·mr
痕忆丶1 天前
Git_Rebase_Conflict_Resolution
大数据·git