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
相关推荐
AWS官方合作商1 天前
告别漫长等待:利用 Amazon GameLift Servers 实现分钟级快速迭代
前端·git·云计算·github·aws
红尘客栈21 天前
git文件的上传
git
正经教主1 天前
【Git】Git05-02:Github 基础同步命令
git·github
黎茗Dawn1 天前
git-Windows-my-dell-笔记
开发语言·windows·git
命运之光2 天前
【快速解决】怎么用git拉取项目到本地
git
万山y2 天前
Git 命令大全
git
Siren_dream2 天前
linux安装git-lfs(无需root权限)
linux·运维·git
因为奋斗超太帅啦2 天前
Git分布式版本控制工具学习笔记(二)——git远程仓库
笔记·git·学习
艾莉丝努力练剑2 天前
【Git:分支管理】Git 分支管理完全指南:从创建、合并到冲突解决
linux·服务器·人工智能·git·gitee·centos·分支管理
风禾万里2 天前
汽车电子软件系统架构ARXML 如何融入 CI/CD、Git、GitLab
git·ci/cd·gitlab