gpt4 book ai didi

svn - 具有最少磁盘空间开销的版本控制

转载 作者:行者123 更新时间:2023-12-04 16:57:18 24 4
gpt4 key购买 nike

我一直在考虑使用像 SVN 这样的版本控制系统作为我使用的几台 PC 之间的通用备份和同步工具。这将适用于各种数据,包括 MP3 和翻录的 DVD - 大量数据 (120gb+)。

我的主要问题是 SVN 在 .svn 中创建每个版本化文件的副本。目录。虽然我可以看到这在大多数情况下非常有用,但对于我的目的来说完全没有必要,并且会浪费大量磁盘空间。

是否有 VCS 不会在您的工作副本中创建文件的副本?

编辑澄清:我只是在谈论每台计算机上所需文件的大小。对于 SVN,这意味着工作副本及其元文件的大小 - 对于 DVCS,这将是 WC 和存储库的大小。

最佳答案

Git在磁盘空间方面非常节俭。
Git vs SVN Comparison Wiki状态:

Git's repository and working directory sizes are extremely small when compared to SVN.

For example the Mozilla repository is reported to be almost 12 GiB when stored in SVN using the fsfs backend. The fsfs backend also requires over 240,000 files in one directory to record all 240,000 commits made over the 10 year project history. The exact same history is stored in Git by only two files totaling just over 420 MiB. SVN requires 30x the disk space to store the same history.

An SVN working directory always contains two copies of each file: one for the user to actually work with and another hidden in .svn/ to aid operations such as status, diff and commit. In contrast a Git working directory requires only one small index file that stores about 100 bytes of data per tracked file. On projects with a large number of files this can be a substantial difference in the disk space required per working copy.

关于svn - 具有最少磁盘空间开销的版本控制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/456336/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com