1.1 introduce the Git

1.1.1 Git profile

Linus’s second great work. In 2005 the BitKeeper software company stopped giving free access to the Linux community. Linus was forced to develop a distributed version control tool of his own, and Git was born.

Git is currently used as source control software: Linux Kernel, Android, jQuery, Ruby on Rails… The number of projects using Git on Eclipse already exceeds the number of repositories using SVN.

1.1.2 Advantages of Git

 distributed and off-line operation  daily work backup work off-site collaborative work field version control avoid the introduction of secondary directory  work progress is saved at all times fast

1.1.3 Working model of Git

 a model of centralized synergy

Figure 1

 social network distribution model

Figure 2

1.1.4 Git Basic Interaction Flow chart

Figure 3

1.2 Git Installation Process

Download it at git-scm.com/downloads/ 1. Double-click the installation program “git-2.12.0-64-bit”, as shown in the figure. The latest version is 2.15.0. If you want to use the latest version, please download.

Figure 4.

2. Click Next and select an installation directory based on your own requirements. As shown in the figure.

Figure 5

3. Continue to click “Next”, the screenshot is as follows:

Figure 6.

Description:

(1) Addition ICONS: Select whether to create desktop shortcuts. (2) Desktop browsing (Windows Explorer Integration) : to browse the source code, use bash or use Git GUI tools. (3) Associated configuration file: Whether to associate git configuration file, which mainly displays the style of text editor. (4) Associated shell script file: whether to associate the script file executed by the Bash command line. (5) Use TrueType coding: Whether to use TruthType coding in the command line, which is a common code developed by Microsoft and Apple.

4. After selecting, click “Next”. The screenshot is as follows:

Figure 7.

Start menu shortcut directory: Set the directory name of the shortcut in the Start menu. You can also choose not to create a shortcut in the Start menu. 5. Click “Next”, the screenshot is as follows:

Figure 8.

Git Bash: Use the Git Bash command line tool provided by Git. (2) The system has CMD: Use the Windows command line tool. Exe and sort.exe will overwrite the find.exe and sort.exe tools in Windows. If you do not know these tools, do not select them.

6. After selecting, continue to click “Next”, the display is as follows:

Figure 9.

7. After selecting, click “Next”, the screenshot is as follows:

Figure 10.

8. After selecting, click “Next”, the screenshot is as follows:

Figure 11.

(1) Convert Windows to Unix: Convert a Windows newline to a Unix newline before submission. (2) Check out the original format to Unix format: no matter what format, must be converted to Unix format newline before submission. (3) No format conversion: no conversion, check out what, submit what.

9. After selecting, click “Next”, the screenshot is as follows:

Figure 12

10. After the selection, click “Install” to start the installation. The screenshot shows as follows:

Figure 13

11. After the installation is complete, the following screenshot is displayed:

Figure 14

With that, our Git client is downloaded and installed. Git English manual is in the installation directory: C: Program Files\Git 【 Note 】 The specific English manual path depends on the installation path. Please refer to your actual installation path.

1.3 Git Bash Configuration

1. Go to Git Bash from the Start menu and click open.

Figure 15

2. Click the icon in the upper left corner and choose Options… from the drop-down list. , the Git Bash configuration interface will pop up. You can configure it according to your own needs. The operation process is as follows:

Figure 16