Git — Installation
Windows
- Download from git-scm.com
- Run installer
- Follow wizard
- 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
| File | Scope |
|---|---|
| /etc/gitconfig | System |
| ~/.gitconfig | Global |
| .git/config | Local |
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
- Install Git
- Verify installation
- Configure user settings
- 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.