1.

What is the difference between git and svn?

Answer»

GIT is a distributed version control system where each developer gets its own local copy of the remote REPOSITORY. While SVN comes under centralized version control. Centralized implies a client-SERVER relationship. There is one main repository (repo) on a server, and every working copy clones and COMMITS to this server. Decentralized is the opposite: there is no “central” repo.

You can not commit in SVN if you are not connected to the central repo so network connectivity is mandatory for SVN for any commit. With Git, you do not have this issue. Your local copy is a repository, and you can commit to it and get all the benefits of source control. When you regain connectivity to the main repository, you can commit against it.

Git
SVN
1. Decentralized Version Control tool
1. Centralized Version Control tool
2. It comes under the third generation of version control tools
2. It comes under the 2nd generation of Version Control tools.
3. We can clone the entire repo on our local systems
3. Version HISTORY is stored on a server-side repository
4. The commits are possible even if remote repo not available
4. Only online commits are allowed
5. The basic /pull operations are faster
5. The Push/pull operations are slower as compared to GIT.
6. Works are shared automatically by commit
6. Nothing is shared automatically, you NEED manual intervention


Discussion

No Comment Found