How To Install Git on Windows 11

If you’re a developer or someone who works with code, Git is one of the most essential tools you’ll ever use. It helps you manage your source code, collaborate with others, and keep track of every change in your projects.

In this guide, we’ll show you how to install Git on Windows 11 step-by-step — from downloading it to configuring your system properly. Let’s get started!

What Is Git?

Git is an open-source version control system created by Linus Torvalds (the creator of Linux) in 2005. It allows developers to track changes in their code, collaborate seamlessly, and revert to earlier versions when needed.

Git is used by almost every major tech company and is the backbone of platforms like GitHub, GitLab, and Bitbucket.

Some of Git’s key features include:

  • Tracking changes in source code efficiently.
  • Supporting multiple developers working on the same project.
  • Handling branching, merging, and version control easily.
  • Fast, reliable, and open source.

Step 1: Download Git for Windows 11

  1. Open your preferred browser and go to the official Git website: https://git-scm.com/
  2. On the homepage, you’ll see a “Download for Windows” button.
    Click on it, and the Git setup file (for example, Git-2.46.0-64-bit.exe) will start downloading automatically.

Note: Always download Git from the official website to ensure you’re getting the latest stable version.

Step 2: Run the Git Installer

  1. Once the download finishes, open your Downloads folder.
    Double-click the downloaded Git setup file to start the installation.
  2. The Git Setup Wizard will appear. Click Next to begin the process.

Step 3: Choose Installation Path

  1. Choose the folder where you want Git to be installed (you can leave it as default): C:\Program Files\Git
  2. Click Next to continue.

Step 4: Select Components

You can leave the default settings as they are, but make sure the following options are checked:

  • Git Bash Here
  • Git GUI Here
  • Associate .git configuration files*

These options make it easier to use Git directly from the File Explorer.

Click Next to proceed.

Step 5: Select Start Menu Folder

You can keep the default folder name or change it if you prefer.
Click Next to continue.

Step 6: Choose Default Editor

Git requires a text editor for commit messages and configuration.
By default, Vim is selected, but you can choose Visual Studio Code or Notepad++ if installed.

Click Next once done.

Step 7: Adjust PATH Environment

You’ll now be asked how you want Git to be used from the command line.

Choose the recommended option:

  • “Git from the command line and also from 3rd-party software.”

Click Next to continue.

Step 8: Choose HTTPS Transport Backend

Select “Use the OpenSSL library” (default option) and click Next.

Step 9: Configure Line Ending Conversions

Select the recommended option:

  • “Checkout Windows-style, commit Unix-style line endings.”

This ensures compatibility between Windows and Linux systems.

Click Next to continue.

Step 10: Configure Terminal Emulator

Choose:

  • “Use MinTTY (the default terminal of MSYS2)”

This gives you a clean and modern terminal interface when using Git Bash.

Click Next.

Step 11: Configure Default Behavior of git pull

Choose:

  • “Default (fast-forward or merge)”
    and click Next.

Step 12: Enable Credential Manager

On the next screen, make sure “Enable Git Credential Manager” is selected.
This makes it easier to authenticate with GitHub, GitLab, and Bitbucket without repeatedly typing your credentials.

Click Next, then click Install to begin the installation.

Step 13: Complete the Installation

Once installation is complete:

  • Leave “Launch Git Bash” checked.
  • Click Finish.

Git Bash will open automatically.

Step 14: Verify Git Installation

To confirm that Git was installed successfully:

  1. Open Git Bash (search it in the Start Menu).
  2. Type the following command and press Enter: git --version
  3. If Git is installed correctly, you’ll see an output similar to: git version 2.46.0.windows.1

Step 15: Configure Git Username and Email

Before using Git, you should set your username and email address. These details are linked to your commits.

In Git Bash, type:

git config --global user.name "Your Name"
git config --global user.email "yourname@example.com"

You can verify your configuration by running:

git config --list

Step 16: (Optional) Integrate Git with GitHub

If you plan to use GitHub:

  1. Create an account at https://github.com/.
  2. Use Git Bash or GitHub Desktop to clone repositories, push commits, or collaborate on projects.

For an even smoother experience, check out our guide on How to Install GitHub Desktop on Windows 11.

Conclusion

You’ve successfully installed Git on Windows 11 and configured it for development.

With Git now set up, you can:

  • Track changes in your code.
  • Collaborate with team members.
  • Manage repositories efficiently using Git or GitHub.

Git is a powerful tool, and mastering it will make you a more productive and professional developer.

Posted by Arpita

With a background in Computer Science, she is passionate about sharing practical programming tips and tech know-how. From writing clean code to solving everyday tech problems, she breaks down complex topics into approachable guides that help others learn and grow.