Installing Git on Windows 11


1. Download Git for Windows


2. Run the Installer

  • Double-click the downloaded .exe file.
  • Accept the license agreement.

3. Choose Installation Options

The installer has several configuration screens. The defaults work fine for most users, but here are the key points:

  1. Select Components → leave defaults checked.
  2. Choosing the editor → pick your preferred editor (default is Vim; many people choose Notepad++ or VS Code if installed).
  3. Adjusting your PATH environment → select “Git from the command line and also from 3rd-party software” (recommended).
  4. SSH transport backend → select “Use SSH”.
  5. Line ending conversions → select “Checkout Windows-style, commit Unix-style line endings” (default).
  6. Terminal – Use the therinal in VS Code or Powershell, or whatever other shell you installed. You must restart VS Code after installing for it to work.
  7. Leave the rest as default unless you know you need a specific option.

Click Install.


4. Verify Installation

  • Open Command Prompt, PowerShell, or Windows Terminal.
  • Type: git --version
  • If Git installed correctly, it will show the version number (e.g., git version 2.46.0.windows.1).

5. Configure Git

Set your global username and email:

git config --global user.name "Your Name"
git config --global user.email "you@example.com"
Code language: PHP (php)

Check your settings with:

git config --list
Code language: PHP (php)
Scroll to Top