Install and Configure Git in Git

From the Git cheat sheet ยท Setup ยท verified Jul 2026

Install and Configure Git

Install Git on your platform and complete the first-time identity setup.

bash
# macOS
brew install git

# Windows
winget install --id Git.Git -e --source winget
๐Ÿ“Œ Your Git identity is stored in commit metadata
๐Ÿ’ก Use repository-level config when a project needs another identity
๐Ÿ” git config --global --list shows the active global settings
โš ๏ธ Do not put access tokens in Git configuration values
installconfigidentityversion

Continue with Git

Save the full cheat sheet or work through every related task.

Back to the full Git cheat sheet