Lesson 2 / 28
Installing Git
Install Git on macOS, Linux or Windows and verify the installation with git --version.
Install per OS
Pick the command for your platform, then confirm the install.
# macOS (via Homebrew)
brew install git
# Ubuntu / Debian
sudo apt update && sudo apt install git
# Windows: download the installer from git-scm.comVerify
A version number confirms the install worked.
git --version
Output:
git version 2.43.0