Git / rsync混合用于具有大型二进制文件和文本文件的项目 [英] Git/rsync mix for projects with large binaries and text files

查看:218
本文介绍了Git / rsync混合用于具有大型二进制文件和文本文件的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道一个项目可以有效地将基于文本的文件的git版本控制和类似rsync的大型二进制文件(如数据)结合起来?很明显,这比DVCS应该做的稍微多一点,但是我很好奇,如果有人写过一个智能的git包装器来做这样的事情来同步中央存储库。

Is anyone aware of a project that can effectively combine git version control for text-based files and something like rsync for large binary files (like data)? Obviously, this is a little beyond what a DVCS should do, but I am curious if anyone has written a smart wrapper around git to do such things to sync with a central repository.

推荐答案

您可能会喜欢 git-annex 。从它的主页:

You might like git-annex. From its homepage:


git-annex允许使用git管理文件,而不需要检查文件$ ​​b $ b的内容到git中。虽然这看起来似乎有些矛盾,但是当处理大于git的文件的
当前可以轻松处理时,它是有用的,
是由于内存,时间或磁盘空间的限制。

git-annex allows managing files with git, without checking the file contents into git. While that may seem paradoxical, it is useful when dealing with files larger than git can currently easily handle, whether due to limitations in memory, time, or disk space.

即使没有文件内容跟踪,也可以使用
git管理文件,移动文件并删除版本化目录
的文件,并使用分支和分布式克隆,都很方便的
使用git的原因。附件中的文件可以共存于同一个git
版本库中,并且可以定期进行版本控制,这样可以方便
维护与附件
文件相关的文件,Makefiles等,版本控制。

Even without file content tracking, being able to manage files with git, move files around and delete files with versioned directory trees, and use branches and distributed clones, are all very handy reasons to use git. And annexed files can co-exist in the same git repository with regularly versioned files, which is convenient for maintaining documents, Makefiles, etc that are associated with annexed files but that benefit from full revision control.

这篇关于Git / rsync混合用于具有大型二进制文件和文本文件的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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