SVN,Git或Mercurial等版本控制系统是否允许您“保留最新版本”但不是修订版? (如用于二进制文件) [英] Does any Version Control System like SVN, Git, or Mercurial let you "keep latest version" but not the revisions? (such as for binary files)

查看:167
本文介绍了SVN,Git或Mercurial等版本控制系统是否允许您“保留最新版本”但不是修订版? (如用于二进制文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的项目文件中,如果有二进制文件,如.doc,.xls,.jpg,并且我们选择不保留以前的修订版(只保留最新版本),有没有办法SVN,Git或Mercurial或其他工具来跳过这些文件或特定文件夹的修订?

In our project files, if there are binary files, such as .doc, .xls, .jpg, and we choose to not keep their past revisions (just keeping a latest version is ok), is there a way to tell SVN, Git, or Mercurial or some other tool to skip the revisions for these files or for a particular folder?

说,有一个4MB .doc文件,我需要检查数百次,但我并不太关心它的过去版本。所以如果系统保留了100个版本,那已经是400MB了......检查300次意味着1.2GB的1个文件,这并不好。只有最新版本是好的,这样每个人都可以同步到它。另外,我不希望其他人检查这个项目,并且需要检查20GB的东西。 (将Git和Mercurial保留在每个人的本地存储库中的所有修订版本吗?)

Say, there is a 4MB .doc file that I need to check in hundred of times, but I don't really care so much about its past versions. So if the system keeps 100 revisions of it, that's already 400MB... checking in 300 times means 1.2GB for 1 file and that's not good. Only the latest version is good so that everybody can sync to it. Also I don't want other people check out the project and have to check out 20GB of stuff. (will Git and Mercurial keep all revision in each person's local repository?)

推荐答案

不会喜欢这个答案。

它的Visual Sourcesafe。检查文件中的仅存储最新版本标志,并停止保存历史记录。

Its Visual Sourcesafe. Check the flag 'store only latest version' on a file and it stops keeping history.

如果您希望此功能具有良好的SCM,我会建议您不要放置文件在SCM中,但将其存储在其他地方,如文档管理解决方案,甚至只是一个文件系统共享。

If you want this feature with a decent SCM, I would recommend not putting the file in the SCM at all, but store it elsewhere like a document management solution, or even just a filesystem share.

这篇关于SVN,Git或Mercurial等版本控制系统是否允许您“保留最新版本”但不是修订版? (如用于二进制文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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