Gitbash installation tutorial under Windows


Download and install

1. Download a git installation package from git official website at

2. Double click the installation program to enter the welcome interface and click [Next >]

3. Read the protocol and click [Next >]

4. Select the installation location and click [Next >]


5. Select the installation component: you can use the default option here, and click [Next >]

  • Additional icons: choose whether to create a desktop shortcut
  • Windows Explorer integration
    • Using git bash mode, shell mode
    • Accepted desktop program mode
  • Associated configuration file: whether to associate git configuration file, which mainly displays text editor style
  • Associate shell script file: Associate bash command execution script file or not
  • Use TrueType encoding: whether to use TrueType encoding in the command line, which is a general encoding developed by Microsoft and apple


6. Whether to create the start menu shortcut directory, click [Next >]

7. Set the environment, choose what kind of command-line tool to use. Generally, we use the default configuration, use git bash, and click Next >

  • Git native: use git bash command line tool
  • CMD: command line tool for windows
  • Both of them: both of them are configured at the same time, but note that this will overwrite the find.exe and sort.exe tools in windows. If you don’t understand these, try not to choose

8. Set the HTTPS transmission encryption method, and click [Next >]

  • Using the OpenSSL Library
  • Use native windows secure channel Library


9. Select line feed format and click [Next >]

  • Let git automatically convert line breaks in files: convert to line breaks under windows when checking out to local, and UNIX when submitting to server
  • Let git do no conversion when checking out to the local, keep the line break of the original file; convert to the line break under UNIX when submitting to the server
  • Let git do no conversion when checking out to the local and submitting to the server

10. Configure git bash terminal emulator and click [Next >]

  • Using mintty terminal
  • Use the default command line of windows


11. Performance configuration, whether to enable file system caching, click [Next >]


12. Start installation

13. After installation, click finish


14. Environment variable configuration

After the installation is successful, you need to configure the GIT environment variable. “Note that Git is configured in the windows CMD command. If not, just use git bash.”

In the path variable, add: C: \ program files \ git \ CMD

Verify whether the configuration is successful. Open the windows command line and enter the GIT version command. The following information appears to indicate that the configuration is successful.



Recommended Today

Configure Apache to support PHP in the Apache main configuration file httpd.conf Include custom profile in

In Apache’s main configuration file / conf/ http.conf Add at the bottom Include “D:workspace_phpapache-php.conf” The file path can be any In D: workspace_ Create under PHP file apache- php.conf file Its specific content is [html] view plain copy PHP-Module setup LoadFile “D:/xampp/php/php5ts.dll” LoadModule php5_module “D:/xampp/php/php5apache2_2.dll” <FilesMatch “.php$”> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch “.phps$”> SetHandler application/x-httpd-php-source </FilesMatch> […]