Hosting your code on twentytwo.town
Private code hosting
Since you already have SSH access to your home directory, you basically have a place to store your git repositories!
Existing repository on your local device
If you already have a git repository on your computer and you want to sync it to twentytwo.town, you first need to login to the server:
$ ssh you@twentytwo.town
Then, create a bare repository in your home directory:
$ mkdir example.git $ cd example.git $ git init --bare
Then, add the remote repository on your local machine:
$ git remote add mirror you@twentytwo.town:example.git $ git push mirror main
Existing repository on twentytwo.town
If you already have a repository on twentytwo.town, you're in luck! This is even easier to pull down from your local device. Simply run:
$ git clone you@twentytwo.town:example.git