debian install git server

Shell
sudo apt-get install git-coresudo useradd git
passwd gitssh-keygen -t rsa
Source

Also in Shell: