How to use Chocolatey Choco to Install GIT on Windows?

Last Updated : 24 Jun, 2022

Linux Users do enjoy the advantage of installing hundreds of software with a  single command, so In WINDOWS we do have a WINGET package manager built in WINDOWS which is not sufficient so we have CHOCOLATEY so with this we can install most of the software from Spotify to Discord directly from the very genuine repository 

Prerequisites

Choco

Installing-chocolatey
 
  • If you haven't installed Chocolatey Open PowerShell as an Administrator 
Opening-powershell
 
  • Run the following command 

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'))

Running-command
 
  • After Successful installation Check for Chocolatey by running Choco -? in the command prompt 
  • Now it's time for installing Git using Chocolatey 
  • Run the following command in the command prompt by launching it as administrator

choco install git.install

Installing-git
 
  •  After executing the above command 
Command-executed
 
Command-executed
 
  • Finally, Check whether Git is installed Successfully or not? 
  • Run the following command by launching it as administrator 

git --version

Running-command
 
  • You can either check it via Windows search 
Checking-via-search-bar
If you are able to find Git after searching for it, then the installation was successful.
Comment