Download from git-scm.com/downloads, or brew install git / sudo apt install git. Then:
git --version git config --global user.name "Your Name" git config --global user.email "you@example.com"
Use the email you will use on GitHub, or GitHub will not link commits to your profile. --global writes to your home directory, not one repo.
On Windows, Git Bash is a usable terminal. In VS Code, the built-in terminal is enough.