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
相关推荐
aoxiang_ywj5 小时前
tig 的untracked changes和unstaged changes含义?
git
2501_9167665412 小时前
【Git学习】Git的tag标签
git·学习
CoderJia程序员甲12 小时前
GitHub 热榜项目 - 日榜(2025-12-11)
git·ai·开源·llm·github
aoxiang_ywj12 小时前
git add 和git commit之后怎么撤销?
git
winner888113 小时前
告别“这个分支是干啥的?”:Git分支层级命名实战
git·git push -u·分支关联·层级分支命名
真上帝的左手14 小时前
3. 代码管理-Git实战
git
lin625342216 小时前
Android仿小米视频播放器的缩放滚轮
android·git·github
互亿无线明明16 小时前
在 Go 项目中集成国际短信能力:从接口调试到生产环境的最佳实践
开发语言·windows·git·后端·golang·pycharm·eclipse
world_in_world16 小时前
git常见场景命令
git
码上成长17 小时前
长耗时接口异步改造总结
前端·git·后端