Windows
Installation of Git on Windows.
Install by Downloading the Installer
1
Step 1: Download Git
- Download the installer from git-scm.com.
2
Step 2: Run the Installer
Run the installer and follow the instructions
Choose whether to add Git to your PATH Select your preferred editor Choose the default branch name Select line ending conversion preferences Choose the terminal emulator
3
Step 3: Verify the Installation
After installation, you can verify the installation by running:
git --version
Or
git -v
If Git is installed, it should show something like git version X.Y
.
Using Chocolatey
choco install git
If you don't have Chocolatey installed, you can install it by running:
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'))
For more information, visit the Chocolatey installation guide.
Using Scoop
scoop install git
If you don't have Scoop installed, you can install it by running:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')