How to Install Git on Windows

This guide walks you through installing Git, the version control system, on a Windows computer.

For the latest version, visit the official Git website to download the installer.

Although the installation wizard offers numerous configuration options, don’t worry, most settings can be adjusted later. Even if something goes wrong, reinstalling Git is quick and straightforward.


Installing Git on Windows (GUI)

Navigate to the Git for Windows download page.
Download the latest installer for Windows.
Run the installer and proceed through the setup wizard.

The installation has many configuration options, all noted below:

Default Editor
Choose your preferred text editor (VS Code, Notepad++, Vim, etc.).

Git Install CLI Options

Line Endings
If working in a mixed Windows/macOS/Linux environment, choose “Checkout Windows-style, commit Unix-style line endings.”

Git Install Checkout Options

Default Console Window
You should configure git to use the default console window for Windows.

Git Install Console Window Options

Git Behavior
Unless you are working on particular advanced Git projects, you can leave the Git Behavior as Default.

Git Install Configure Pull Options

Extra Options
Enable Git Credential Manager for better authentication handling, and have file system caching enabled, because why not.

Git Install Configure Extra Options

Experimental Options
Enable experimental options if you are not precious about you Git environment and experience.

Git Install Psudo Consoles

To confirm Git is installed correctly, run ‘git --version‘ in PowerShell:

Check Git Version PowerShell

Git for Windows also includes Git Bash, a command-line tool that emulates a Linux-like terminal environment. Open Git Bash from the Start Menu:

Git Bash From Windows Start Menu

In the example screenshot below, I’m creating a new folder and file within the Git Bash terminal:

Git Bash Play

Congratulations! You have successfully installed Git on Windows. You can now start using Git for version control!


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts
Categories
Tags

Always On Availability Groups (AAG) (4) AWS (4) AWS Redshift (6) Database Admin (72) Database Backups & Recovery (14) Database Mirroring (2) Error Messages (5) Failover Cluster Instances (FCI) (1) Git Commands (6) Importing & Exporting Data (2) Linked Servers (3) Linux Administration (2) Logging & Monitoring (1) Microsoft Patching (2) MySQL (4) Postgres (6) PowerShell Scripts (2) SQL Certificates & Encryption (3) SQL Server Agent (5) SQL Server CDC (2) SQL Server Data Types (2) SQL Server Management Studio (SSMS) (17) SQL Server Networking (3) SQL Server on Linux (1) SQL Server Patching (2) SQL Server Performance Tuning (6) SQL Server Processes (SPIDs) (7) SQL Server Replication (2) SQL Server Scripts (13) SQL Server Security (4) SQL Server Storage (10) Windows Admin (20) Windows Authentication (2) Windows Automation (1) Windows Events (2) Windows Firewall (4) Windows Subsystem for Linux (WSL) (18)