二进制文件的 Git 或 Subversion [英] Git or Subversion for binary files

查看:21
本文介绍了二进制文件的 Git 或 Subversion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要将二进制文件(主要是 MS Word 文档,大小从几 KB 到几 MB)存储在具有 100 多个项目"的版本控制存储库中.目前我们使用的是Visual Source Safe,但是存在一些问题,数据库有时会崩溃,访问速度很慢.

We need to store binary files (mostly MS Word documents, ranging from a couple of KB to a couple of MB in size) in a version control repository with over 100 "projects". Currently we use Visual Source Safe but there are some problems, the database is crashing sometimes and the access is slow.

我们正在考虑迁移到 Git 或 Subversion,我们想知道哪个更适合处理二进制文件.

We are considering moving to Git or Subversion and we were wondering which one would be a better option for handling binary files.

推荐答案

Subversion,绝对的.今天(2009 年),TortoiseSVN 提供了与资源管理器集成的 Subversion 存储库导航,最特别的是它支持任意 Word 文档的差异(它将差异推迟到 Word 本身,但该功能非常有效).

Subversion, definitely. Today (2009), TortoiseSVN provides Explorer-integrated navigation of Subversion repositories, and most particularly it supports diffing of arbitrary Word documents (it defers the diff to Word itself, but the feature works really well).

TortoiseGit 没有理由不能具有相同的功能,但今天这样的东西并不完全以稳定的形式存在.幸运的是,将来随时可以轻松地将 Subversion 存储库迁移到 Git.

There's no reason why a TortoiseGit can't have this same feature, but such a thing doesn't quite exist in a stable form today. Fortunately, it's easy to migrate a Subversion repository to Git anytime in the future.

更新:截至 2011 年,TortoiseGit 显然具有与 TortoiseSVN 相同的文档管理功能.但是,Subversion 支持建议性锁定文档,以便其他用户在尝试与其他人同时编辑文档时收到通知.据我所知,由于 Git 的分布式特性,TortoiseGit 无法支持此功能.

Update: As of 2011, TortoiseGit apparently has the same document management features as TortoiseSVN. However, Subversion supports advisory locking documents so that other users are notified if they try to edit the document at the same time as someone else. To the best of my knowledge, TortoiseGit cannot support this feature because of Git's distributed nature.

这篇关于二进制文件的 Git 或 Subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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