Engineering. Simplified!

Hosted Git

Hosting Your Personal Git

Your Own Public Server - LightSail

Setup Your Git Account

Adding a server repository

Connect as a non-Git user.

$ ssh lightsail

Login in to the git account

$ which zsh
/usr/bin/zsh

$ sudo su -s /usr/bin/zsh git
% pwd
/home/git

% cd repositories

% pwd
/home/git/repositories

% mkdir consulting.git

% cd consulting.git

% pwd
/home/git/repositories/consulting.git

% git init --bare
Initialized empty Git repository in /home/git/repositories/consulting.git/

Add the new remote server

$ git remote add origin git@git.basu.net.in:repositories/consulting.git

$ git push origin main