Git is usually pre-installed on macOS.
To verify, open Terminal and run: git --version
If Git is not installed, use Homebrew:
Install Homebrew by running the command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Once Homebrew is installed, run: brew install git
Download the Git installer from the official website: https://git-scm.com/download/win
Run the installer and follow the steps (keep clicking next).
After installation, open Command Prompt and run: git --version to verify.