Configure Git under Windows (the git command will prompt "Not an internal or external command)

[Original: http://blog.csdn.net/exlsunshine/article/details/18939329 ]

1. Download the Windows version of git from the git official website: http://git-scm.com/downloads

2. Generally, the default settings can be used: next all the way, git installation is complete!

3. But if you open the cmd of windows at this time, and typing the git command in it will prompt "it is not an internal or external command, nor is it a runnable program", if you want to use the git command directly in the cmd of windows, you need to add the following two steps

3.1. Find the location of bin in the git installation path, such as: D:\Program Files\Git\bin

        Find the location of git-core in the git installation path, such as: D:\Program Files\Git\libexec\git-core;

        Note: "D:\Program Files\Git\" is the installation path, which may be different from your installation path. Replace "D:\Program Files\Git\" with your own path.

3.2. Right-click "Computer" -> "Properties" -> "Advanced System Settings" -> "Environment Variables" -> find "path" in the "System Variables" below -> select "path" and select "Edit" - Copy the bin and git-core paths found in 3.1 into it -> save and exit

        Note: In "path", the semicolon in English input state - ";" should be used as the interval between each path


Now you can use git to your heart's content in cmd~


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325617829&siteId=291194637