0 votes
in Git by (30.8k points)
What is the main difference between Git and SVN

3 Answers

0 votes
by (19.9k points)

The major differentiating point between Git and an SVN is that Git is a distributed version control system (DVCS), while SVN is only a centralized version control system (CVCS).

0 votes
by (30.8k points)

Below is the difference between GIT and SVN repository.

i) GIT: 

Git is an open-source distributed vice control system developed by Linus Torvalds in 2005. Its emphasis on speed and data integrity in which there is no centralized connectivity is needed. It is powerful and cheap branching with easy merge in which each developer has his repository and have a local copy in which they can change history. It supports non-linear development branches and applications with a large number of codes files.

Here are some .git directory structures used in GIT:

1) HEAD/: A pointer structure used in git.

2) Config/: Contains all configuration preferences.

3) description/: Description of your project.

4) index/: It is used as a staging area between working directory.

5) object/: All the data are stored here.

6) logs/: Keeps record to change that are made.

ii) SVN: Apache Subversion is an open-source software version and revision control system under the Apache license. It managed files and folders that are present in the repository. It can operate across the network, which allows it and used by people on different computer .we can say that a repository is like an ordinary file server which allows it to be used by people on a different computer.

0 votes
by (30.8k points)

Git vs. SVN version control systems

With all version control systems, project files sit on a server that you push your files to when you have completed your work on your local machine. However, deciding whether to use a centralized version control system (like SVN) or a distributed version control system (like Git) will affect how you commit changes.

Remember, not all version control systems fit all teams and all needs. A method that works perfectly for one company may be entirely wrong for your team. To determine which system to use, you need to look at how each system works.

What is SVN?

Apache Subversion, also known as Subversion, SVN represents the most popular centralized version control system on the market. With a centralized system, all files and historical data are stored on a central server. Developers can commit their changes directly to that central server repository.

Work is comprised of three parts:

1) Trunk: The trunk is the hub of your current, stable code and product. It only includes tested, unbroken code. This acts as a base where all changes are made from.

2) Branches: Here is where you house new code and features. Using a copy of the trunk code, team members conduct research and development in the branch. Doing so allows each team member to work on the enhanced features without disrupting each other’s progress.

3) Tags: Consider tags a duplicate of a branch at a given point in time. Tags aren’t used during development, but rather during deployment after the branch’s code is finished. Marking your code with tags makes it easy to review and, if necessary, revert your code.