如何通过运动鞋网(外部文件)将Git变更集从一个存储库导出到另一个存储库? [英] How can I export Git change sets from one repository to another via sneaker net (external files)?

查看:56
本文介绍了如何通过运动鞋网(外部文件)将Git变更集从一个存储库导出到另一个存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统安装在没有外部网络访问权限的区域,无法带入计算机.该系统的所有源代码都存储在GIT存储库中.自安装以来,在现场进行了一些修改,这些修改已提交给系统信息库的本地副本.由于存在隔离性,我目前无法像开发期间那样推动这些更改.

I have a system that is installed in an area that does not have external network access and I can't bring in my computer. The system was developed with all source in a GIT repository. Since the installation there have been a few modifications mad onsite that have been committed to the systems local copy of the repository. I currently have no way to push those changes out like was done during development because of the isolation.

我想做的是将4-5次提交导出到一个导出文件",以后可以在现实世界中使用该更改将更改应用于外部存储库(例如我的笔记本电脑)和Bitbucket.

What I would like to do is export the 4-5 commits that have been made to an "export file(s)" that can later be used in the real world to apply the changes to the external repository such as my laptop and Bitbucket.

推荐答案

使用 git包.创建捆绑包:

git bundle create update.bundle HEAD~5..HEAD

在接收方使用git fetchgit pull:

git pull update.bundle master

这篇关于如何通过运动鞋网(外部文件)将Git变更集从一个存储库导出到另一个存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆