1. Fast
If you have to wait for five seconds every time you move the mouse, isn't it so unbearable? The same is true for version control. If every command takes several seconds, it will waste a lot of time. Git operations are very fast, and you can spend time in other more meaningful places.
2. offline work
How can I work without a network? If you use SVN or CVS, it will be very troublesome. Git allows you to perform all operations locally, submit code, view history, merge, and create branches.
3. rollback
People may make mistakes. One thing I like very much about git is that you can "undo" almost all the commands. You can use this function to fix a problem in the code you just submitted or roll back the entire code submission operation. You can even restore a deleted commit because git does not perform any delete operations on the backend.
4. worry-free
Have you ever lost the version library? I have, and the headache is still fresh in my memory. With git, I don't have to worry about this problem, because the version on any machine is a complete backup.
5. Select useful code for submission
There are at least two problems when you throw the ties, ice cubes, and tomatoes into a blender. First, after stirring, no one knows what was thrown in before. Second, you cannot roll back and take the tomatoes out again. Similarly, when you submit a bunch of unrelated changes, such as adding strong feature a, adding function B, and Function C fixing, it is very difficult to clarify what this pile of code has done. Of course, you cannot roll back feature a independently when you find that function A has a problem. Git can help you solve this problem by creating "Submit particles. The concept of "staging area" allows you to determine which items need to be submitted or updated, accurate to the line.
6. Free choice of working methods
With git, you can connect to multiple remote code libraries at the same time, "rebase" instead of "merge", or even only connect to a certain module. However, you can also select a central version library, just like SVN. You can still use other advantages of git.
7. Keep work independent
Separating different problems will help you track the progress of the problem. When you work for function A, other people should not be affected by the code you have not completed. Branch is the solution to this problem. Although other version control software systems have branch systems, git is the first system to make the system simple and fast.
8. Follow the big stream
Although it is only because of death that the waves are moving forward, many times smart programmers follow the storm. More and more companies are using git for open-source projects, including Ruby on Rails, jquery, Perl, Debian, and Linux kernel. Having a strong community is a great advantage, with many tutorials and tools.