What is Git
Git is a distributed version control system.
What is the difference between ## and SVN
The most obvious one: SVN is centralized, GIT is distributed. To put it simply: SVN saves all code versions on one server, but GIT can view all history in any warehouse.
Why use GIT
In fact, whether or not to use GIT mainly depends on whether the company has centralized authority requirements for code management. Generally speaking, GIT is recommended unless there are special requirements.
Let’s take a look at the two most obvious reasons:
- All historical versions are available locally, and historical codes can be quickly retrieved, which is very helpful for bug location.
- It is popular, has many tools, and is easy to get started. It is recommended to use the free Sourcetree tool here.
How to use
In fact, rather than telling you how to use GIT, you need to understand the concept of the GIT version control system, because it is just a version control tool, and its purpose is to better manage the code base for multi-person collaborative development, release rollback, etc.
Because of the popularity of GIT, some people have already produced many exquisite and easy-to-understand tutorials. I won’t reinvent the wheel. I recommend the following tutorial:
http://rogerdudler.github.io/git-guide/index.zh.html
Get started quickly (optional)
It is extremely necessary to have your own GIT warehouse, whether for practice or to participate in open source projects in the future. We recommend 2 websites:
Foreign Github:https://github.com/
Domestic recommendation Coding:www.coding.net
Both websites provide free online git code warehouse hosting, as well as free pages static page services. Github has the largest number of users in the world and many high-quality open source projects, but domestic access speeds are slow. Coding is currently only available domestically and is very fast. It is recommended that novices practice using it before going to github.
One last thing to add
The concept of GIT workflow is the key point. Only by understanding it can you understand why GIT is done this way and its distributed advantages.