git introduction
Distributed: Git version control system is a distributed system, which is used to save the history state of Engineering source code command-line tools.
Save point: Git's save point can track files in the source code, and can get the status of the whole project at a certain point in time, you can merge the source code that is submitted by many people at the save point, or you can fall back to a savepoint.
git offline operability: git can be offline for code submission, so it's called full distributed processing, and all of GIT's operations don't need to be online; This means that git is much faster than SVN, because tools such as SVN need to be online to operate, and if the network environment is bad, Submitting code can become very slow.
Git is based on snapshots: The old version control tool such as SVN is to save the submission point as a patch file, and Git commits to point the submission to the project snapshot at the time of submission, and the submission contains some metadata (author, date, GPG, etc.).
The branching and merging of git: The branching model is the most notable feature of Git, because it changes the developer's development model, and SVN and other version control tools place each branch in a different directory, and git can switch between different branches in the same directory.
Branching immediacy: Creating and switching branches is almost simultaneous, users can upload part of the branch, and another part of the branch can be hidden locally, without having to upload all the branches to GitHub.
Branching flexibility: Users can create, merge, delete branches at any time, many people implement different functions, you can create multiple branches for development, and then branch merge, which makes development fast, simple and secure.
git client downloads
By the time the blog was released, Git's latest version was 2.10.2. We can download from the official website, the website download link as follows:
Click to open the website download link
If you feel that the website download is too slow, you can download the link from the following csdn: Click to open csdn download link
git client installation process
1. Double click the installer "Git-2.10.2-64-bit.exe" to show the screenshot as follows:
2. Click "Next" to display the screenshot below:
Select the installation directory for your program, depending on your situation.
3. Continue clicking "Next" to show the screenshot as follows:
Description
(1) Icon Component (addition icons): Choose whether to create a desktop shortcut.
(2) Desktop browsing (Windows Explorer integration): Browse the source method, use bash or use the Git GUI tool.
(3) Association profile: whether to associate a Git profile that mainly displays the style of the text editor.
(4) Associated shell script file: whether to associate the script file executed by the Bash command line.
(5) Using TrueType encoding: Whether Truthtype encoding is used on the command line, which is a common code developed by Microsoft and Apple.
4. After the selection, click "Next" and show the screenshot as follows:
Start Menu Shortcuts Directory: Set the directory name of the shortcut in the Start menu, or choose not to create a shortcut in the Start menu.
5. Click "Next" to display the screenshot below:
Setting environment variables
Choose which command-line tool to use, and in general we use GIT bash by default:
(1) git with: Use Git's own git bash command-line tool.
(2) system with CMD: Using Windows system command line tools.
(3) Both are: The above two are configured, but note that this will cover Windows Find.exe and Sort.exe tools, if you do not understand these as far as possible not to choose.
6. After the selection, continue to click "Next" and display the following:
Select a newline format when submitting
(1) Check out the Windows format conversion to UNIX format: The Windows format of the line to the UNIX format of the newline and then submit.
(2) Check out the original format into the UNIX format: No matter what format, will be converted to UNIX-style line before submitting.
(3) No format conversion: Do not convert, check out what is submitted.
7. After the selection, click "Next" to show the screenshot as follows:
8. After the selection, click "Next" to show the screenshot as follows:
9. After the selection, click "Install", start the installation, screenshot shows as follows:
10. After the installation is complete, the screenshot shown below:
In this way, our git client is downloaded and installed to complete.