Janna Theme License is not validated, go to the theme options page to validate the license, you need a single license for each domain name.

How to Install Git and Git Bash on Windows

Git Bash is a terminal emulator for Windows, used to experience the Git command line. With Git Bash, you can work on any code changes on the terminal itself, without the need for another coding environment, such as Atom, Notepad++, etc. Follow the various methods in this guide to install Git and Git Bash on Windows. When you add Git Bash as a program to Windows, it installs the entire Git version control system.

Featured-Install-Git-Bash-on-Windows10-11.jpg How to Install Git and Git Bash on Windows

Table of Contents

How to Install Git Bash/Git on Windows

There are four different ways to install Git Bash/Git on Windows, each with its own advantages. The first method is the full instructions for the regular Git installer, while the others are shortcuts to the same results.

1. Using Git Installer on Windows

longer install Git for Windows It's easy, but you should carefully check the steps to avoid sync errors later.

  1. Click Windows Link in download page.
    Git-Bash-Windows-Download-Page-800x467.jpg How to Install Git and Git Bash on Windows
  2. You'll see multiple download links. If you're looking for the regular installer, choose the latest 64-bit version for Windows.
    Git-Bash-Windows-Download-Latest-Version-800x426.jpg How to Install Git and Git Bash on Windows
  3. Accept GNU General Public License.
    Git-Bash-Windows-Setup-General-License.jpg How to Install Git and Git Bash on Windows
  4. Locate Destination location on your Windows device.
    Git-Bash-Windows-Destination-Folder-Installer.jpg How to Install Git and Git Bash on Windows
  5. Select the components you want to install and remove the components you don't want to install. At a minimum, you'll need to enable the options. Git Bash و Git GUI و Git LFS (Large File Support) و “Associating .git configuration files with the default text editor” و “Associate .sh files to be run with Bash.” In most cases, these required options should be enabled by default.
    Git-Bash-Windows-Select-Components-Install.jpg How to Install Git and Git Bash on Windows
  6. will be Create a Git folder As the default folder in Program Files. You can choose not to create a Start menu folder.
    Git-Bash-Windows-Disable-Start-Menu-Shortcuts.jpg How to Install Git and Git Bash in Windows

Customize your installation

In the next step, you will have the option to choose the default editor by Git.

  1. While Vim It is the default editor, you will find many other options, such as: Notepad ++ and Atom Visual Studio Code and Sublime Text. In this tutorial, we're using Vim.
    Git-Bash-Windows-Vim-as-Default-Editor.jpg How to Install Git and Git Bash in Windows
  2. Specify the name of the initial branch or leave it to Git. It is safer to specify “Let Git decide.”
    Git-Bash-Windows-Initial-Branch-Repositories-Options.jpg How to Install Git and Git Bash on Windows
  3. Locate PATH environment Recommended for Git from the command line and also from third-party programs.
    Git-Bash-Windows-Adjust-Path-Environment-Command-Line.jpg How to Install Git and Git Bash in Windows
  4. Locate Using OpenSSH bundled As a secure shell (SSH) executable client.
    Git-Bash-Windows-Choose-SSH-Executable.jpg How to Install Git and Git Bash on Windows
  5. Select the backend for HTTPS transfer, Using the OpenSSL library For superior authentication.
    Git-Bash-Windows-Use-OpenSSL-Library-HTTPS-Transport-Backend.jpg How to Install Git and Git Bash on Windows
  6. Another Git convention is to configure line endings in text files. Specify “Windows-style Checkout, adhere to Unix-style line endings.”
    Git-Bash-Windows-Configuring-Line-Ending-Conversions.jpg How to Install Git and Git Bash on Windows
  7. You need a terminal emulator to use Git Bash with it. Choose MinTTY, the default terminal for MSYS2, instead of the Windows console window. This keeps Git programs separate from what you're doing in the command prompt.
    Git-Bash-Windows-Use-MinTTY-Terminal-Emulator.jpg How to Install Git and Git Bash on Windows
  8. Select the option "hypothetical" For behavior requests “git pull”.
    Git-Bash-Windows-Default-Behavior-Git-Pull.jpg How to Install Git and Git Bash in Windows
  9. to manage GitHub and other third-party credentials, select Git Credential Manager.
    Git-Bash-Windows-Choose-Credential-Helper-Git-Credential-Manager.jpg How to Install Git and Git Bash in Windows
Also read:  Top 5 Fixes for the "The User Profile Service Failed to Log You On" Error in Windows 11

Additional options

There are also some additional options that you need to configure in a regular installation of Git for Windows.

  1. Locate Enable file system caching To improve performance.
    Git-Bash-Windows-Extra-File-System-Caching.jpg How to Install Git and Git Bash on Windows
  2. It's safe to ignore experimental options, such as fake controllers.
    Git-Bash-Windows-Experimental-Features.jpg How to Install Git and Git Bash on Windows
  3. Installing Git will take a few minutes.
    Git-Bash-Windows-Git-Installing.jpg How to Install Git and Git Bash on Windows
  4. You can run Git Bash after the Git setup wizard finishes.
    Git-Bash-Windows-Installation-Finished.jpg How to Install Git and Git Bash on Windows
  5. Alternatively, locate the Git Bash application in Windows search or open the executable file from the folder where it is installed.
    Git-Bash-Windows11-File-Explorer-800x435.jpg How to Install Git and Git Bash on Windows
  6. The MinTTY terminal emulator should be visible. This will help you keep Git processes separate from other computer functions. The MinTTY window looks like a command terminal.
    Git-Bash-Windows-Commands-in-Console-800x353.jpg How to Install Git and Git Bash in Windows

2. Use the portable version of Git

Aside from the long regular installer, Git also has a portable version for Windows, which is very easy to use.

  1. Go to Git Download Page for Windows Click on the download link. Windows Portable.
    Git-Bash-Windows11-Download-Links-Portable-800x428.jpg How to Install Git and Git Bash on Windows
  2. Save .ZIP file Mobile in a folder of your choice.
    Git-Bash-Windows11-Portable-Downloads-Folder-800x426.jpg How to Install Git and Git Bash on Windows
  3. You can change the Git portable installation destination by clicking Three dots icon.                                                          Git-Bash-Windows11-Portable-Git-Installation-Location.jpg How to Install Git and Git Bash on Windows
  4. Wait until the portable installer is fully extracted.
    Git-Bash-Windows11-Extracting-Percent-Portable-Version.jpg How to Install Git and Git Bash on Windows
  5. Once the process is complete, you will find the portable folder nested inside “Git Bash Install Windows”.
    Git-Bash-Windows11-Portable-Git-Folder-Location.jpg How to Install Git and Git Bash on Windows
  6. turn on Git Bash application From a volume PortableGit , then save it to a USB drive, if you like.
    Git-Bash-Windows11-PortableGit-Folder-for-Git-Bash-800x459.jpg How to Install Git and Git Bash on Windows
  7. MinTTY describes itself as a portable terminal, but it's no different from a regular terminal, and you can use all Git commands here.
    Git-Bash-Windows11-Portable-Version-Open-800x387.jpg How to Install Git and Git Bash on Windows
Also read:  Top 7 Ways to Fix the "We Need to Repair Your Account" Error Message on Windows 11

3. Using WinGet tool

You can use the Winget command line tool to install Git/Git Bash on Windows.

  1. Install an app App Installer Microsoft Store on your computer.
    Git-Bash-Windows11-App-Installer-Microsoft-Store-800x430.jpg How to Install Git and Git Bash on Windows
  2. Open command prompt in administrator mode.
  3. Type winget to verify that the App Installer installed correctly. It will display several commands you can use with winget.
    Git-Bash-Windows11-Winget-Type-Cmd-800x486.jpg How to Install Git and Git Bash on Windows
  4. Install Git using Winget in the command prompt by typing the following code:
    winget install --id Git. Git -e --source winget

    Git-Bash-Windows11-Downloading-Installing-Git-via-Winget-800x395.jpg How to Install Git and Git Bash on Windows

  5. Installing Git via WinGet in the command prompt may take up to a minute. You may also see an installer pop-up.
    Git-Bash-Windows11-Git-Installing-via-Winget-Cmd-800x541.jpg How to Install Git and Git Bash in Windows
  6. Check if a message appears “Installed successfully” at the command prompt.
    Git-Bash-Windows11-Successfully-Installed-Message-Cmd-800x415.jpg How to Install Git and Git Bash in Windows
  7. Once the Git setup wizard finishes installing Git, launch Git Bash or open the program terminal from the Windows search box in administrator mode.
    Git-Bash-Windows11-Search-for-App.jpg How to Install Git and Git Bash on Windows

It is useful to know: Is Windows 11 tools not working for youTry these solutions.

4. Chocolatey

Chocolatey is a Windows PowerShell application that can quickly install the full version of Git/Git Bash. It acts as a wrapper for any target application that is installed.

  1. Open PowerShell in Administrator mode.
  2. install Chocolate and In Windows, use the following command. You won't receive any message confirming the successful installation. Once the process is complete, close the PowerShell window and then restart.
    Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

    Git-Bash-Windows11-Install-Chocolatey-PowerShell-Commands-800x510.jpg How to Install Git and Git Bash on Windows

  3. in PowerShell window New (administrator mode), type the following to install Git using Chocolatey.
    choco install git.install

    Git-Bash-Windows11-Installing-Git-Via-Chocolatey-800x482.jpg How to Install Git and Git Bash on Windows

  4. Click "TO" Or "Y" To grant the permissions requested by Chocolatey.
    Git-Bash-Windows11-Click-A-to-Run-Script-Chocolatey-800x415.jpg How to Install Git and Git Bash in Windows
  5. Once Git install On your device, you will see a success message. PowerShell window.
    Git-Bash-Windows11-Install-Chocolatey-Message-Successful-800x447.jpg How to Install Git and Git Bash on Windows

Good to know: Do you want to know? How to use PowerShellYou will need this list of basic commands.

Frequently Asked Questions

Q1: What is the difference between Git and GitHub?
The answer: Git is an open source version control system whose repositories are hosted on GitHub, an online collection of Git source code. GitHub is owned by Microsoft; however, its open source nature remains unchanged by this ownership. While you need Git to run many GitHub projects, the opposite is true: alternatives to GitHub exist, such as GitBucket, GitLab, and SourceForge.

Q2: What is the difference between Git and Git Bash?
The answer: Git is the original Unix-based version control system, launched in 2005 by Linus Torvalds to track code changes in multi-user collaborative projects on Linux and Mac. Bash is another Linux-specific command-line shell based on Unix.

Microsoft's operating system was not originally designed for Bash, a Linux-based command-line system. Therefore, Windows users must install Git Bash, a third-party program that is a dedicated terminal emulator designed specifically for Windows. With Git Bash, you can run both Git and Bash together in Windows.

Q3: Is it possible to completely uninstall Git from Windows?
The answer: You can completely uninstall Git from Windows by uninstalling the Git Bash application from "Add or Remove Programs" in Settings, or by going to the Control Panel and clicking "Uninstall a program" under Programs and Features. Locate the Git folder in the C:\ drive using the Windows search menu, and then delete it. If you're using the portable version of Git on Windows, delete the Git folder, as no other installation has been performed.

Also read:  Fix - Windows Spotlight Doesn't Change Lock Screen Picture in Windows 10
Go to top button