Ubuntu/Debian:
sudo apt-get update && sudo apt-get upgrade sudo apt-get install git
Arch Linux:
pacman -S git
Windows:
Não sei nem por que você estaria instalando git no Windows, mas ok. https://git-scm.com/
Gere uma SSH key.