My previous understanding of git is just that it is a version control system. It submits code using several commands to a remote repository, which is equivalent to a thorough understanding. Today, I have learned about the system, although I have not studied it very deeply, but at the very least, I understood both the operation and the principle. Mom no longer needs to worry that I won't go through git anymore... Next, I will simply sort out what I learned, so that I can forget to come back and check =,
First, what is git?
Git is a distributed version control system. What is a distributed version control system? For example, if you have modified a file many times, you must save the previous content before each modification, in case it will be used in the future, the result is that you have saved a lot of files and it is hard to find them. If your files require the participation of others, the person and you will modify the files at the same time, when he submits the file to you, you need to modify your modification again on the basis of the modification. This is very troublesome! (The description is too long ..) Therefore, you hope that a software or system can record every change to a file, and can collaborate with multiple people. The distributed version control system can do this. Git is currently the most advanced distributed version control system.
Git Origin
Linus, the creator of an open-source Linux, started to manage the code contributed by the world by hand, which is quite troublesome. Although there is a free centralized version control system like CVs and Svn, however, Linus believes that these centralized version control systems are not only slow but must be connected to the Internet, but also have a better experience for some commercial versions, but pay-as-you-go systems violate the open-source Linux spirit. Later, bitmover provided Linus with a free commercial version control system bitkeeper. However, some users in the Linux community wanted to crack the bitkeeper protocol, in the end, bitmover no longer provides free bitkeeper for Linus. It took two weeks for Linus to write git in C! (In fact, I want to say, why didn't he write one at first)
Centralized and distributed
Centralized means that the version library is on the central server. Developers must first obtain the latest version from the central server during development and then submit the modified version to the central server. The disadvantage is that the version must be networked.
Distributed systems do not have a central server. Each developer's computer has a complete version library, which is highly secure and does not require Internet connection, A computer can also serve as a "central server" to facilitate "exchange and modification ".
Reference blog http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000
Next specific git operations
Git learning and summary (1)