1. Git Installation and configuration

Source: Internet
Author: User

Download the GIT installation package

0.tortoisegit-1.8 Chinese version and git install package: http://download.csdn.net/download/renfufei/8204699

  1. First Open Git's official website: http://git-scm.com/
  2. Then find the download page: http://git-scm.com/downloads
  3. Find the version of Windows download page: Http://git-scm.com/download/win
  4. Because you are ready to use Tortoisegit as a graphical client, you do not choose the Git GUI version. When you open the download page for Windows, you should automatically pop up the download box and select Save. If it doesn't pop up, you can right-click on the click here to download manually in the page., select Save As.
  5. It is recommended that the downloaded software installation package be classified into a directory, such as: E:\SOFT_N\Tools_ALL\Git_ALL , convenient for later search and use.
  6. After the file is downloaded through the browser, you need to modify the lock properties of the file, especially the . zip file and the . CHM file (otherwise open CHM will show 404). Right click on the downloaded file, select Properties, then click the "Unlock" button to make sure. As shown in the following:

Remove file lock (not required)

7. Then double-click the installation file, if there is a Windows blocking warning, allow

8. Then the Installation Wizard interface appears, click Next:

Installation Wizard Interface

9. Then the authorization information interface appears, Next can:

Authorization Information Interface

10. Select the installation path

11. Select File association, if you are not clear, direct default, next. If you want the right-click menu to be a little fresher, remove the one in the box. It is also possible to remove all the hooks here, which is more refreshing (that's what I do).

12. Then the Start Menu folder appears, by default, the next step:

13. Then whether to configure the path configuration, select the middle one, you can invoke the git command via Windows command Line (CMD). Then click Next.

14. Select the format of the carriage return line. By default. (Convert to Windows style when checking out, convert to Linux style when committing.)

Carriage return Line Style (CRLF-LF)

15. Then the installation Progress screen

16. Installation is complete. Remove the check box for the View version description and click the Finish button.

17. You can test whether path is set in CMD and whether the installation is successful. Enter in cmdgitOrgit --versionTry:

18. If you follow the previous steps to install it, then the path of the GIT program is added to the system path (path is the same as the system automatically find the path list), so you can directly execute the git command under any path of CMD. If not, you will need to switch the CD to the bin directory where Git is located before you can execute the git command.

19. Set your own nickname and email

Set the local machine default commit nickname and email. Please use a meaningful name and email.

git config--global user.name "tiemaocsdn" git config--global user.email "[email protected]" git config--global pus H.default Simple  

If you want to use Git for push, you must configure  push.default  , or push fails. Name and email are used only for log identification. When you actually push to an online repository such as GitHub, log in with an account with operational privileges.

View git configuration can use  -l   parameter (L is the first letter of list, lowercase of L):

git config-l  

under the root path of an item, you can set up a separate email and name.

git config user.name "tiemaocsdn" git config user.email "[email protected]"  

As you can see, when you configure a single item, the parameters are missing --global .

Related websites:
    • git download page: http://git-scm.com/download/

    • Win7_8 under git:https://windows.github.com/(this should be the official software for GitHub under Windows, but does not support XP)

Related articles

    1. Directory
    2. Installing and configuring Git
    3. Installation and Configuration Tortoisegit
    4. Git and tortoisegit basic operations
    5. markdown Example
    6. Solve the tortoisegit strange bad file number problem
    7. Join QQ Group GitHub home: 225932282

Date: 2014-11-27
Author: anchor: Http://blog.csdn.net/renfufei

1. Git Installation and configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.