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
相关推荐
我家媳妇儿萌哒哒7 小时前
git:无法推送refs到远端。您可以试着运行“拉取”功能,整合您的更改。
git
驯龙高手_追风10 小时前
Gitlab本地服务器搭建及配置-详细教程
git·github
czhc114007566311 小时前
6.11:halcon,Sqlserver;项目sql连接;git
git·sql·sqlserver
炸炸鱼.12 小时前
Git+Jenkins 基本使用:从入门到实战(知识点大全)
运维·git·jenkins
戴国进14 小时前
git stash 用法详解
git
木雷双雄714 小时前
Git 版本回退操作指南
git
m0_579146651 天前
已被 Git 追踪的本地修改文件如何实现临时忽略
git
糖少主1 天前
WSL中使用Beyond Compare 3/4/5作为difftool
git·wsl·beyond compare·difftool
2601_961875241 天前
高考真题word版下载|2025高考全科真题可编辑文档
c#·word·ar·vr·mr·高考·oneflow
console.log('npc')1 天前
Git版本管控:git reset \+ git push \-f 原理、实操与避坑指南
git