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 天前
Claude助力前端开发
java·数据库·git·python·sql·spring·database
sunarmy1 天前
在git for windows下安装pacman
git
哎呦,帅小伙哦1 天前
Git Describe 与 TRAVIS_TAG学习笔记
笔记·git·学习
谷哥的小弟1 天前
(最新版)Git&GitHub实操图文详解教程(04)—远程仓库GitHub
git·github·pull·push·版本管理·版本控制
weelinking1 天前
【2026】08_Claude与版本控制:Git协作技巧
数据库·人工智能·git·python·数据挖掘·交互·cloudera
码力斜杠哥1 天前
Git的说明及基本使用
git
摆烂且佛系1 天前
git reset 与 git revert 区别
git
向日的葵0062 天前
大模型之git操作(第五章)
git
kyriewen2 天前
我让AI替我写Git提交信息,老板以为我每天工作16小时
前端·javascript·git