How to Install Git on Windows

Git is an essential tool if you are going to code. It allows you to easily manage different versions of code in a repository (repo). Git is also the most common way to access GitHub, one of the largest code repositories in the world. Here are some ways to install Git on Windows.

Download Windows executable

The easiest way to get Git is to download the executable from the Git website.

Click “64-bit Git for Windows Setup” to start the download, then wait a moment – the download is only about 50 megabytes, so it shouldn’t take very long.

RELATED: Where are my downloads on Windows?

Double-click the executable you just downloaded, then click “Next” to go through the installation prompts. There are a ton of options during the installation process – don’t worry too much about most of them. The default options will be fine, but there are two you need to pay attention to.

The first is the text editor that Git will use. The default selection is Vim. Vim is ubiquitous and a feature of command-line interfaces everywhere, but learning to use its idiosyncratic commands can be daunting. You should probably choose something else instead, like Visual Studio Code, Sublime, NotePad++, or whatever plain text editor you like.

Simply click on the drop-down menu, then select the new program from the list.

Point: Try Visual Studio Code if you don’t know which one to choose.

The second is how Git fits into your PC’s PATH. Make sure “Git from the command line and also from third-party software” is selected.

RELATED: How to Change Your System PATH for Easy Command Line Access in Windows

Be sure to select the option that adds Git to your system PATH.

Click on the remaining options and wait for everything to complete the download. The time it takes to download everything will vary depending on what you have chosen to install. The default selection results in a download of approximately 270 megabytes.

Use Winget to download Git

You can also use Winget to download Git if you are a fan of command line interfaces.

RELATED: How to use Windows 10 package manager, “winget”

Open PowerShell or Windows Terminal with a PowerShell tab, then paste or type:

winget install --id Git.Git -e --source winget

You will see a few download bars appear in the terminal window as Winget fetches everything it needs.

Winget fetches files from GitHub.

A normal Windows installation window will appear as the last part of the installation process.

The last part of the installation process.

You are good to go after this window closes. You will find that Git has been added to the PATH. Any programs that require it to be installed, such as Stable Diffusion, will now work correctly.

RELATED: How to Run a Stable Broadcast on Your PC to Generate AI Images

About Sally E. Bartley

Check Also

How to Fix Your Ethernet Connection Not Working in Windows 11

Next post — What is Gigabit Ethernet? 3 Reasons You Need It (And 2 Reasons …