Git Installation Guide
Git is a version control system used to track code changes and enable team collaborative development.
Installing Git
Windows Installation
- Visit the Git official website
- Download 64-bit Git for Windows Setup
- Double-click the
.exefile and install with the default options
macOS Installation
- Visit the Git official website
- Download the version suitable for your chip:
- Intel chip: Intel version
- Apple Silicon (M1/M2/M3): Apple Silicon version
- Double-click the
.dmgfile 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"