# Installing Git — Git Fundamentals: Commits, Branches and Collaboration

Source: https://www.skillbyai.com/en/git/git-installing

> 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.

```bash
# macOS (via Homebrew)
brew install git

# Ubuntu / Debian
sudo apt update && sudo apt install git

# Windows: download the installer from git-scm.com
```

## Verify

A version number confirms the install worked.

```bash
git --version
```

Output:

```
git version 2.43.0
```
