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
相关推荐
XiaoHu020710 小时前
Linux多线程(详细全解)
linux·运维·服务器·开发语言·c++·git
*才华有限公司*10 小时前
RTSP视频流播放系统
java·git·websocket·网络协议·信息与通信
juelianhuayao11 小时前
Git错误提交后如何快速删除本次commit
git
chen<>12 小时前
Git原理与应用
大数据·git·elasticsearch·svn
小兔崽子去哪了12 小时前
Git 专题
git
金米kk12 小时前
git pull时报错Your local changes to the following files would…的解决办法
git
超级罗伯特12 小时前
git一次性完成仓库下载及所有分支获取
git·git仓库拉取
BUTCHER513 小时前
Git 基础命令
git
M malloc13 小时前
当你有两个git账号时,此时你gitpush冲突后如何解决push问题
git
cuijiecheng201815 小时前
Linux控制台下git使用图形化界面进行文件对比
linux·运维·git