Skip to content

Git Bash Install

Download the Git for Windows installer

Introduction

Git Bash is a command-line interface that provides a Unix-like environment on Windows, allowing you to interact with your system and manage Git repositories efficiently. It combines Git, a popular version control system, with Bash, a shell commonly used in Linux. This tool is essential for anyone learning programming, working on collaborative projects, or managing code for research purposes.

Why Use Git Bash?

Unix Commands on Windows: Git Bash provides Unix command-line utilities like ls, cp, and rm, which are standard in many programming environments.

Essential for Programming and Research: Whether you’re working on a software project, analyzing data, or managing code in a research lab, Git Bash simplifies file management and collaboration.

Installation

Step 1: Watch this YouTube Video first

This is also another very nice tutorial that will show you the installation process.

Step 2: Download and run the installer

Download and run the git installer from here at gitforwindows.org

Step 3: Run the installer and then follow the steps below

  1. Click on “Next” four times (two times if you’ve previously installed Git). You don’t need to change anything in the information, location, components, and start menu screens.

  2. Select “Use the nano editor by default” and click on “Next”.

  3. Select "Let Git decide" and click on "Next"

  4. Select "Git from the command line and also from 3rd party software" and click on "Next"

  5. Select “Use bundled OpenSSH” and click on “Next”.

  6. Select “Use the OpenSSL Library” and click “Next”.

  7. Keep “Checkout Windows-style, commit Unix-style line endings” selected and click on “Next”.

  8. Select “Use Windows’ default console window” and click on “Next”.

  9. Select “Default (fast-forward on merge)” and click on “Next”.

  10. Select “None” (Do not use a credential helper) and click on “Next”.

  11. Select “Enable file system caching” and click on “Next”.

  12. Ignore “Configuring experimental options” and click on “Install”.

  13. Click on “Install”.

  14. Click on “Finish”.

  15. If your “HOME” environment variable is not set (or you don’t know what this is):

    1. Open command prompt (Open Start Menu, then type cmd and press [Enter])
    2. Type the following line into the command prompt window exactly as shown:
      setx HOME "%USERPROFILE%"
      
    3. Press [Enter], and you should see SUCCESS: Specified value was saved.
    4. Quit the command prompt by typing exit and then pressing [Enter]