</>
Skip to content
Git lessons (4/44)

Git — Installation

Windows

  1. Download from git-scm.com
  2. Run installer
  3. Follow wizard
  4. Verify: git --version

macOS

# Using Homebrew
brew install git

# Using Xcode
xcode-select --install

Linux

# Ubuntu/Debian
sudo apt-get update
sudo apt-get install git

# CentOS/RHEL
sudo yum install git

# Arch
sudo pacman -S git

Verification

git --version
which git

Configuration Files

FileScope
/etc/gitconfigSystem
~/.gitconfigGlobal
.git/configLocal

Post-Installation Setup

git config --global user.name "Your Name"
git config --global user.email "your@email.com"
git config --global init.defaultBranch main

Mini Practice

  1. Install Git
  2. Verify installation
  3. Configure user settings
  4. Check configuration

Up Next

Continue with Configuration — Git configuration.

Related Topics

Frequently Asked Questions about Installation

What is Installation in Git?

Installation is a fundamental concept in Git. This lesson explains it step by step with clear examples, making it easy for beginners to understand.

How do I learn Installation?

Start by reading the explanation above, then try the code examples. Practice by modifying the examples and experimenting with different values. Hands-on practice is the best way to learn Installation.

Why is Installation important in Git?

Installation is essential for Git development. Understanding this concept will help you write better code and solve real-world problems more effectively.