In this blog post, we show you how to setup or install Git on windows system.
This is second post of series where we discuss about setting up development environment for Ethereum that we need before we start with smart contract development. Click Post 1 to go over the first post where we discuss about installation of NodeJs.
Let's see how to Install Git on windows.
If you prefer to watch video then go over below video and see the Git setup.
We have two options to setup Git on windows as mentioned below.
- Using chocolatey
- Using direct window installer
Let's go over these options one by one.
Using Chocolatey
This is recommended option from our end but before we setup Git, we need to install chocolatey on windows system. You can skip below step if chocolatey is already installed on your system.
To Install chocolatey visit below link and go to "Install with cmd.exe" section.
https://chocolatey.org/install
Now run below command as given on above link on window command prompt.
@"{1d6e369f27b3b55fac77a13f30e13d2b04ce9713b9295394d4a423074fd2099f}SystemRoot{1d6e369f27b3b55fac77a13f30e13d2b04ce9713b9295394d4a423074fd2099f}\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH={1d6e369f27b3b55fac77a13f30e13d2b04ce9713b9295394d4a423074fd2099f}PATH{1d6e369f27b3b55fac77a13f30e13d2b04ce9713b9295394d4a423074fd2099f};{1d6e369f27b3b55fac77a13f30e13d2b04ce9713b9295394d4a423074fd2099f}ALLUSERSPROFILE{1d6e369f27b3b55fac77a13f30e13d2b04ce9713b9295394d4a423074fd2099f}\chocolatey\bin"
This command install chocolatey on window system. Now let's see how to install Git on windows using chocolatey, for that run below choco command and that will download and install Git on the system.
choco install git -y
Wait for some time and Git gets installed on the system.
Using direct window Installer
Go to below link and download the window installer. Run that executable file and choose default option.
No Comments