Skip to main content

Git Installation Guide

Git is a version control system used to track code changes and enable team collaborative development.

Installing Git

Windows Installation

  1. Visit the Git official website
  2. Download 64-bit Git for Windows Setup
  3. Double-click the .exe file and install with the default options

macOS Installation

  1. Visit the Git official website
  2. Download the version suitable for your chip:
    • Intel chip: Intel version
    • Apple Silicon (M1/M2/M3): Apple Silicon version
  3. Double-click the .dmg file to install

Or use Homebrew:

brew install git

Linux Installation

Ubuntu/Debian:

sudo apt update
sudo apt install git

Verifying the Installation

git --version

If the version number is displayed, the installation was successful.

Initial Configuration

# Set the username and email
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"