Installation & Setup
Get .git running on your local machine in under 3 minutes. Follow the steps below for your operating system, verify the installation, and configure your initial workspace.
Prerequisites
Before installing .git, ensure your system meets the following requirements:
- OS: macOS 12+, Windows 10/11 (x64), or Linux (Ubuntu 20.04+, Debian 11+, Alpine, RHEL 8+)
- Runtime: Node.js 18+ or Deno 1.38+ (for extended JS/TS integrations)
- Git: v2.35+ (bundled in most installers)
- Disk Space: ~450MB for core binaries + cache
Installation
Select your preferred package manager or operating system below to begin:
Homebrew handles all dependencies automatically. The CLI will be linked to /opt/homebrew/bin/.git (Apple Silicon) or /usr/local/bin/.git (Intel).
Administrative privileges may be required. After installation, restart your terminal or IDE to update PATH.
For RHEL/CentOS/Alpine, refer to the Linux package matrix for native RPM and APK instructions.
Verification
Confirm the installation succeeded by running the diagnostic command:
If any check fails, consult the Troubleshooting section below.
Initial Setup
Once verified, configure your workspace with the interactive setup wizard:
-
Initialize your identity
Set your default author for commits and telemetry opt-ins.
CLI.git config init # Prompts for: - Full name & email - Default editor (vim, nvim, vscode, etc.) - Telemetry preferences (anonymous usage stats) -
Link to remote provider
Connect your existing GitHub, GitLab, or Bitbucket account for seamless authentication.
CLI.git auth login --provider github # Opens browser for OAuth. Token stored securely in system keychain. -
Clone or create a repository
Test your setup by pulling a starter project or initializing a new one.
CLI.git init my-project cd my-project .git status # Should show clean working tree
Troubleshooting
Common issues and quick fixes:
This usually means your PATH isn't updated. Run hash -r (Bash/Zsh) or restart your terminal. If using npm, ensure your global bin directory is in PATH.
Ensure your system's CA certificates are up to date. On Linux, run sudo apt install ca-certificates. You can also force TLS 1.2+ with .git config set http.sslVersion TLSv1.2.
.git uses the native OS keychain (macOS Keychain, Windows Credential Manager, libsecret on Linux). Ensure your user has read/write access, or disable secure storage with .git config set auth.secure false (not recommended for production).
.git doctor --verbose to generate a diagnostic report, then share it on our GitHub Discussions or join the Discord channel for real-time support.