DEV Community

CodeSetupLab
CodeSetupLab

Posted on

How to Download & Install Git on Windows 11/10 (Step-by-Step)

If you are setting up a new development environment or just getting started with version control, installing Git is your absolute first step.

In this quick tutorial, we'll walk through how to download the right installer, navigate the setup wizard and verify that Git is correctly configured in your Command Prompt (CMD) or Git Bash.


Prefer a Video Guide?

If you'd rather see these steps executed in real-time, check out the complete step-by-step video tutorial here:


Step 1: Download the Official Git Installer

First, head over to the official Git website to grab the latest 64-bit standalone installer for Windows:

Download Git for Windows

Click on the "Click here to download" link or select the Git for Windows/x64 Setup to download the executable (.exe) file.


Step 2: Run the Git Setup Wizard

Open the downloaded installer. While the default settings work perfectly for 95% of developers, keep an eye out for these key options during the wizard:

  1. Choosing the default editor: You can select VS Code, Notepad++, or leave it on Vim depending on your preference.
  2. Adjusting your PATH environment: Ensure "Git from the command line and also from 3rd-party software" is selected. This makes sure you can run Git commands from CMD, PowerShell, or any IDE terminal.
  3. Choosing the SSH executable: Leave it on bundled OpenSSH.

Click Install and let the setup finish.


Step 3: Verify Your Installation

Once the installation is complete, let's verify that your system recognizes Git.

Open your Command Prompt (CMD), PowerShell, or Git Bash and run the following command:


bash
git --version

Enter fullscreen mode Exit fullscreen mode

Top comments (0)