Self hosting a Git server¶ Add a git remote to a server you have SSH access to. On the Git server: mkdir /path/to/repo.git cd /path/to/repo.git git init --bare On your local machine: cd /path/to/local/repo git remote add origin user@git-server:/path/to/repo.git git push -u origin master