Reference Link: http://www.liaoxuefeng.com
Installation
Installation steps:
① first load the operating system with GIT tools, take Linux for example:
$ sudo apt-get install git
② to the GitHub website for an account to generate SSH key
③ generates SSH key, which uses mail as the mailbox you used to register for GitHub (QQ mailbox support)
$ ssh-keygen-t rsa-c "[Email protected]" (after the carriage return, there will be a query, do not have to control all the way to enter, the generated SSH key file is saved in the ~/.ssh/id_rsa.pub file. )
④ you also need to copy the generated ssh-key to the settings on GitHub. This place note that it is important to use cat instead of vim when reading the Ssh-key file generated in the Linux system, as VIM is formatted with a newline copy and paste.
GIT structure
Git has three structures, a workspace, a staging area, and a main branch structure area. The relationship between them is as follows:
Links to git and remote repositories:
The use of git under Linux