Git installed locally

1 Git Introduction

Git is a distributed version control system open source, can be effective, high-speed processing from very small to very large project version management. Git  is Linus Torvalds To help manage Linux kernel development and the development of an open source version control software

Git is currently the most popular distributed version control system, the main difference between it and the other version control system Git is concerned only with whether the entire data file changes, and most versions of other file systems only care about the content of specific differences, such systems (CVS, Subversion, Perforce, Bazaar, and so on) every record which files have been updated, and are updated what exactly which rows.

1.1 Git properties

  • Distributed : Git version control system is a distributed system that is used to save the project source history state command-line tool.
  • Save Point : Save point Git can track files in the source code, and can get state of the entire project on a certain point in time; the source code can be incorporated in the submission of more than save point, one can fall back to save Point.
  • Git offline operability : Git offline submit code, so it is regarded as fully distributed processing, Git does not need all of the operations conducted online; this means that Git speed is much faster than SVN tools such as SVN and other tools need to be online when to operate, if the network environment is not good, submit the code will become very slow.
  • Git-based snapshot : SVN and other version control tools are old-fashioned save point will be submitted to the patch file, Git will submit the project submission is a snapshot of the points to the submission, submitted something that contains some metadata (author, date, GPG, etc.).
  • Git branching and merging : branch model is the most significant features of Git, because it changes the development model developers, SVN and other version control tools each branch should be placed in a different directory, Git may be in the same directory switch between different branches.
  • Branch immediacy : Create and switch branches almost the same time, the user can upload a part of the branch, the branch can be hidden in another part of the local, you do not have all of the branches are uploaded to GitHub to go.
  • Branch flexibility : users can always create, merge, delete, branch, people perform different functions, you can create multiple branches to develop, after the merger branch, in this way the development is quick, simple and safe

1.2Git advantages and disadvantages

  Advantages :

  • Suitable for distributed development, emphasis on the individual.
  • Public pressure on the server and the amount of data that will not be too large.
  • Work offline, fast, and flexible.
  • You can easily resolve any conflict between two developers

  Disadvantages :

  • Unconventional thinking.
  • Poor security codes, once the developer down the entire library clones can be completely open all the code and version information

 

2 Git client download

1.2.1 Download

Git client to download the official website link: https://git-scm.com/downloads

1.2.2 Select operating system

Depending on the target you want to install their own operating system, select the corresponding download source. Here, for example with Windows X64

Note : If you think the official website to download more slowly, you can find on the Web to download resources

 

3 Git client installation

3.1 Git client installation

  • Double-click the "Git-2.17.0-64-bit.exe", enter the installation guide screen, click Next>

 

  • Click Next>

 

  • Select the formation of installation, the default configuration to, click Next>

 

  • Start menu shortcuts directory, the default configuration to, click Next>

 

  • Select the default editor: Vim, click Next>

 

  • Select the command-line tool, generally choose: User Git from Git Bash only, click Next>

 

  • The default selection, click Next>

 

  • Select line format, the default selection, click Next>

 

  • The default selection, click Next>

 

  • The default choice, click on Install

 

  • Client installation is complete, click Finish

 

 

3.2 Git client configuration

为方便后续应用和验证是否安装成功,配置环境变量配置path(本步骤也可不做)

 

配置好后,在cmd中输入:git --version,如果出现如下信息,即表示安装成功

 

Guess you like

Origin www.cnblogs.com/wei9593/p/11698204.html
Recommended