如何在sneakernet环境中使用Git? [英] How to use Git in a sneakernet environment?

查看:91
本文介绍了如何在sneakernet环境中使用Git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目有许多测试电脑,都是100%的网外。我们使用USB驱动器也从这些PC传输文件。在这些PC的测试过程中会发生一些发展。我们传输更新文件的zip文件,其中'版本信息'以zip文件的名称编码。



我的问题是如何最好地使用Git来管理sneakernet项目办公室PC和测试PC之间的文件传输(或回购,或什么?)。这不是一般的'使用案例',通常为笔记本电脑用户'脱网'和在一些角落咖啡厅开发,后来重新回到网络上。



有没有人在这种情况下获得经验?




另请参阅 git bundle create --all 答案转移完整的回购

解决方案

使用Git与未连接的计算机很容易,使用 git bundle



它的手册页


My project has a number of test PCs which are 100% off-net. We use a USB drive to transfer files too and from these PCs. Some development happens during the tests on those PCs. We transfer zips of the updated files, with the 'version info' coded in the name of the zip file.

My question is how best to use Git for managing the sneakernet transfer of files (or repos, or what?) between the project's office PCs and the test PCs. It's not the normal 'use case' that is often presented for laptop users being 'off-net' and developing in some corner cafe, and later getting back on net.

Has anyone got experience in such scenarios?


Also see the git bundle create --all answer to transfer a complete repo

解决方案

Using Git with unconnected computers is easy with git bundle.

See its man page.

这篇关于如何在sneakernet环境中使用Git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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