Developer Tools

How do I check Git?

Updated 2026-08-14

✓

Quick answer

To check if Git is installed, open your terminal or command prompt and type 'git --version'. This command will display the installed version of Git if it is present.

This guide explains how to verify the installation of Git on your system and troubleshoot common issues.

Steps

  1. 1

    Open Terminal or Command Prompt

    On Windows, search for 'cmd' or 'PowerShell'. On macOS, use 'Terminal' from Applications. On Linux, use your preferred terminal emulator.

  2. 2

    Run Git Version Command

    Type 'git --version' and press Enter. If Git is installed, you will see the version number.

  3. 3

    Install Git if Not Found

    If Git is not installed, download it from the official Git website and follow the installation instructions for your operating system.

Checking Git Installation

You can verify if Git is installed by using the command line. This applies to Windows, macOS, and Linux systems.

Troubleshooting Git Issues

If the command returns an error or is not recognized, Git may not be installed or the system's PATH variable may not include the Git executable.

Watch out for

  • The command line interface may vary slightly depending on the operating system and version of Git.

FAQ

What should I do if I get an error when running 'git --version'?

Ensure that Git is installed on your system. If it is installed, check if the installation path is correctly added to your system's PATH variable.

How can I install Git on my system?

Visit the official Git website, download the installer for your operating system, and follow the installation instructions provided.

Can I use Git without installing it?

No, Git must be installed on your system to use its commands. However, some online platforms provide Git functionality without local installation.