Git vs. CVS/SVN
● Distributed (but …) ● Centralized
● Ability to work off-line ● no
● Full local history ● no
● Versions are described ● Numerically described
using SHA-1 versions
● Fast and lightweight ● Every branch is a full copy
branches of repository
● Checkout on repository ● Checkout on file/catalog
level level
● Complex tag's ● Simple tag's
4
How Git works?
Saves state not deltas.
5
Images taken from Pro Git book (http://progit.org)
How Git works?
Objects
6
Images taken from Pro Git book (http://progit.org)
How Git works?
Structure of .git
extensions
global exclude file
record branch changes
object storage
local branches
default main branch
remote tracking branches, divided by repository
default remote repository
default remote branch
configuration for this repository
tip of current branch
cache for staging changes for next commit
11