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
相关推荐
我不是秃头sheep44 分钟前
Git安装教程及常用命令
git
sduwcgg9 小时前
git经验
git
麻雀无能为力9 小时前
git的使用
git
算法歌者12 小时前
Visual Studio 项目 .gitignore 文件指南
git·visual studio
江边垂钓者12 小时前
git cherry-pick和git stash命令详解
git
Lw老王要学习12 小时前
Linux架构篇、第五章git2.49.0部署与使用
linux·运维·git·云计算·it
爱学习的张哥13 小时前
专栏项目框架介绍
git·fpga开发·udp·ddr·gt收发器
Aric_Jones15 小时前
lua入门语法,包含安装,注释,变量,循环等
java·开发语言·git·elasticsearch·junit·lua
Sapphire~1 天前
odoo-049 Pycharm 中 git stash 后有pyc 文件,如何删除pyc文件
ide·git·pycharm
Willis_m1 天前
Linux 服务器用 SSH 拉取多个 Git 工程
linux·服务器·git·ssh