Friday, November 9, 2012

What is best in git?

What are the things you'd first say about git when describing it to someone?

  • That it's distributed?
  • Ot makes branching easier or more lightweight?
  • You absolutely hate it's complexity?
  • Each repo is a peer?
  • It's fast?
  • It works when you're disconnected from remote repos?

I think the most important thing to know about GIT is that each commit represents a state of a file. With SVN, each commit represents a diff between two file states (a changeset). With git, the diff is calculated on demand by comparing two commits. With svn, the state of the file is calculated by applying the changeset.