From Official Website

  • Visit the official Git website: Git for Windows.
  • Click on the “Download” button to download the installer.
  • Run the downloaded executable file.

Using Package Manager

Chocolatey

To install Git, run the following command from the Terminal:

choco install git

Scoop

To install Git, run the following command from the Terminal:

scoop bucket add main
scoop install main/git

Winget

❗Official Package Manager for Microsoft Windows

To install Git, run the following command from the Terminal:

winget install -h -e -s winget --id Git.Git

Verify the Installation

After installing Git, you can verify the installation by running this command in the terminal. This should display the installed Git version.

git version

References