Cài đặt Git
Cài đặt trên Windows
Cách 1: Git for Windows (Khuyến nghị)
- Truy cập git-scm.com/download/win
- Tải file installer
- Chạy installer và chọn các tùy chọn:
- ✅ Git Bash Here
- ✅ Git GUI Here
- ✅ Use Git from Windows Command Prompt
Cách 2: Winget (Windows 11)
winget install --id Git.Git -e --source wingetCài đặt trên macOS
Cách 1: Xcode Command Line Tools
xcode-select --installCách 2: Homebrew (Khuyến nghị)
# Cài Homebrew (nếu chưa có)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Cài Git
brew install gitCài đặt trên Linux
Ubuntu/Debian
sudo apt update
sudo apt install gitFedora
sudo dnf install gitArch Linux
sudo pacman -S gitKiểm tra cài đặt
Mở Terminal/Command Prompt và chạy:
git --versionKết quả mong đợi:
git version 2.43.0Tiếp theo
Sau khi cài đặt, hãy Cấu hình Git với thông tin cá nhân của bạn.
Last updated on