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

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

问题描述

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



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

解决方案

颠覆,绝对。今天(2009年),TortoiseSVN提供了资源管理器集成的Subversion版本库导航,尤其是它支持任意Word文档的 diffing (它将差异推迟到Word本身,但功能非常好)。 / p>

TortoiseGit没有理由不能拥有这个相同的功能,但今天这样的事情并不存在稳定的形式。幸运的是,将来随时可以将Subversion存储库迁移到Git。



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


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.

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

解决方案

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).

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.

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天全站免登陆