Git tutorial

Git is an open source distributed version control system for agile and efficient processing of any small or large projects.

Git is an open source version control software developed by Linus Torvalds to help manage the development of the Linux kernel.

Git is different from the commonly used version control tools CVS, Subversion, etc. It uses a distributed version library without server-side software support.

The difference between Git and SVN

Git is not just a version control system, it is also a content management system (CMS), work management system, etc.

If you are a person with a background in using SVN, you need to do some conversion of ideas to adapt to some concepts and features provided by Git.

The difference between Git and SVN:

  • 1. Git is distributed, SVN is not : This is the core difference between Git and other non-distributed version control systems, such as SVN and CVS.

  • 2. Git stores the content as metadata, and SVN as files: All resource control systems hide the meta information of files in a similar .svn. cvs etc.

  • 3. The Git branch is different from the SVN branch: The branch is nothing special in SVN, in fact it is another directory in the repository.

  • 4. Git does not have a global version number, and SVN has: So far this is the biggest feature that Git lacks compared to SVN.

  • 5. Git ’s content integrity is better than SVN: Git ’s content storage uses the SHA-1 hash algorithm. This can ensure the integrity of the code content and ensure that the damage to the version library is reduced when encountering disk failures and network problems.