Git vs SVN
• Git has a distributed model
• Every user has their own
copy of code on their local,
basically like their own
• Keep making changes and
when you are satisfied
merge it to your master.
• Master is on your local, so
changes stay on your local.
• If you have a remote link
like a GitHub repo...push
changes on your master to
● SVN has a centralized model
● Everyone has a working copy
and changes are committed to
a central repository
● There's not much to say about
it....you guys know it all.
• That said...local copy of code means speed.
• Basic operations like diff, commit, status etc. Become ultra fast.
• In SVN such operations occur in the central repository...that is you connect
to your server for such operations.
● Excellent for large open source projects
● Feature rich
● Branching and merging is what Git does best
Git is faster than SVN
• Git is extremely fast. No network latency involved.
● Perform a diff.
● View file history.
● Commit changes.
● Merge branches.
● Obtain any other revision of a file
● Switch branches.
SVN eats up a lot of space unlike Git
• Git's repository and working directory sizes are extremely small when
compared to SVN.
• 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.
• A Git working directory requires only one small index file that stores
about 100 bytes of data per tracked file.
Stuck up with two girlfriends, Git can help you out.
Branching and merging was never easier before.