How does git save space and is fast at the same time?

Posted by eSKay on Stack Overflow See other posts from Stack Overflow or by eSKay
Published on 2010-05-19T20:40:25Z Indexed on 2010/05/19 21:00 UTC
Read the original article Hit count: 280

I just saw the first git tutorial at http://blip.tv/play/Aeu2CAI

How does git store all the versions of all the files and still be more economical in space than subversion which saves only the latest version of the code?

I know this can be done using compression but that would be at the cost of speed, but this also says that git is much faster (though where is gains the max is the fact that most of its operations are offline).

So, my guess is that

  • git compresses data extensively
  • it is still faster because uncompression + work is still faster than network_fetch + work

Am I correct? even close?

© Stack Overflow or respective owner

Related posts about git

Related posts about github