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
相关推荐
XS03010620 小时前
Git远程仓库实操笔记
笔记·git·elasticsearch
Java成神之路-20 小时前
Git 合并冲突完全指南:分支合并、拉取冲突、推送冲突
git
NutShell Wang21 小时前
拆解 GitHub gh-stack:堆叠 PR 工作流的设计取舍与工程实现
前端·git·开源·github·代码复审·开发者工具·vibe coding
咩咩啃树皮21 小时前
第62篇:Git团队协作完整流程——企业多人开发规范、分支管理、冲突解决、上线流程(最终封笔篇)
git
.Hypocritical.1 天前
Git 入门教程
git
AI行业学习2 天前
Claude Code + cc-switch + Git + Node.js 全套下载+安装+配置完整版
开发语言·git·python·前端框架·node.js·html·notepad++
豆角焖肉2 天前
.gitignore:配置文件+初学入门
git·gitignore
月落归舟2 天前
Git 新手入门指南
git
达达车2 天前
git使用技巧记录
git·使用技巧·版本管理
Simon—欧阳2 天前
Git使用心得&理解
git