There are a few ways to install Git on Windows. The option you choose will probably depend on what you are most comfortable with. Let’s take a quick look at the Git install for Windows options available.
Git for Windows Stand-Alone Installer
This is a project called Git for Windows and it is separate from Git itself, but it does the task just fine and for most may be the easiest way to install Git on Windows.
You can download the Git for Windows installer by going to https://gitforwindows.org/.
Once you have downloaded and opened/started the installer, you will see the Git Setup wizard screen. Follow the “Next” and “Finish” prompts to complete the installation. The default options are pretty sensible for most users.
You also want to run the following commands to configure your Git username and email. This is what will be associated with any commits you make:[ht_message mstyle=»info» title=»» show_icon=»» id=»» class=»» style=»» ]$ git config –global user.name «Your Username Here»
$ git config –global user.email «Your Email Here»[/ht_message]
Finally, there is also the option to install the Git credential helper on Windows. Installing it would be your call based on whether you think you need it or not.
Automatic Download From Git Website
Pretty straightforward here. You can get the Git Windows install straight from the Git website. This is the most official way to do it, though sometimes not the most chosen.
To get this download visit https://git-scm.com/download/win. Please be aware that the download should start automatically. If it doesn’t, then go ahead and click the download button for the Git Window’s install that you prefer.
Automated Git Windows Installation
If you prefer a more automated installation you can try using the Git Chocolatey Package. Please be aware that this package is community maintained so that is where you would turn for any troubleshooting.
Installing GitHub Desktop
One last pretty easy way to get Git installed on Windows is to install GitHub Desktop. The installer includes a command line version of Git as well as the GUI. It also works well with PowerShell, and sets up solid credential caching and sane CRLF settings.
You can download this desktop version at the GitHub Desktop Website. The download button is smaller and located directly under the MAC OS download button.
There you go, a few simple ways to download and install Git on Windows.