How do different version control systems handle binary files?

后端 未结 5 761
广开言路
广开言路 2020-12-24 06:25

I have heard some claims that SVN handles binary files better than Git/Mercurial. Is this true and if so then why? As far as I can imagine, no version control system (VCS) c

5条回答
  •  Happy的楠姐
    2020-12-24 06:58

    The main pain point is in the "Distributed" aspect of any DVCS: you are cloning everything (the all history of all files)

    Since binaries aren't stored in delta for most of them, and aren't compressed as well as text file, if you are storing rapidly evolving binaries, you end up quickly with a large repository which becomes much cumbersome to move around (push/pull).

    For Git for instance, see What are the git limits?.

    Binaries aren't a good fit for the feature a VCS can bring (diff, branch, merge), and are better managed in an artifact repository (like a Nexus for example).
    This is not necessary the case for a CVCS (Centralized VCS) where the repository could play that role and be a storage for binaries (even if its not its primary role)

提交回复
热议问题