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
相关推荐
宇宙realman_99911 分钟前
Git 本地版本控制极简使用笔记(Qt 项目专用)
笔记·git
坐吃山猪20 分钟前
OpenClaw02_GitHook使用
git·hook·openclaw
莫寒清2 小时前
Git分支命名规范与最佳实践
git
无限进步_3 小时前
深入解析C++容器适配器:stack、queue与deque的实现与应用
linux·开发语言·c++·windows·git·github·visual studio
程序员爱酸奶3 小时前
Git + 云原生:构建坚如磐石的 Kubernetes 配置版本管理
git·云原生·kubernetes
Liu.7745 小时前
vscode使用git和svn
git·vscode·svn
longze_75 小时前
git凭证失效,CNB git credential 凭证突然失效
git
prince056 小时前
git提交错了?直接删除提交记录
git
console.log('npc')6 小时前
git代码冲突reset,如何回退到冲突之前提交之前的版本
javascript·git·react.js
无限进步_6 小时前
【C++】获取字符串最后一个单词长度的多种解法
开发语言·c++·ide·windows·git·github·visual studio