Course Content
GIT Tutorial
About Lesson

Installing Git on Windows

Git is a powerful version control system that allows developers to track changes in their code and collaborate seamlessly. If you’re a Windows user, installing Git on your machine is a crucial first step to leveraging its benefits. In this guide, we’ll walk you through the process of installing Git on Windows.

Prerequisites

Before we begin, make sure your Windows machine meets the following prerequisites:

Downloading Git

To install Git on Windows, you’ll need to download the installer from the official Git website. Visit https://git-scm.com/download/win to access the download page. Once there, click on the download link to initiate the download.

Installing Git

  1. Locate the downloaded executable file (typically named Git-X.X.X.X-64-bit.exe), and double-click on it to start the installation process.

  2. The Git Setup Wizard will appear. Follow the on-screen instructions to proceed through the installation. You can stick with the default settings, or customize them based on your preferences.

  3. During the installation, you’ll encounter an option to adjust the default editor used by Git. If you’re unsure, it’s recommended to stick with the default editor (usually Vim).

  4. When prompted to adjust your system’s PATH environment, choose the option “Use Git from Git Bash only.” This ensures that Git commands are accessible from the Git Bash terminal.

  5. Continue with the installation, and once completed, click “Finish” to exit the wizard.

Verifying the Installation

To ensure that Git has been installed successfully, open the Git Bash terminal. You can do this by searching for “Git Bash” in the Windows Start menu. Once open, type the following command and press Enter:

git --version

If Git is installed correctly, you should see the installed version number displayed in the terminal.

Configuring Git

Before you start using Git, it’s essential to configure your user information. Open the Git Bash terminal and run the following commands, replacing “Your Name” and “your.email@example.com” with your actual name and email:

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

This information is used to identify your commits.