Initialising a new self-hosted remote Git

Software

I still use Subversion for reasons when I can, so I had to remind myself how to create a new self-hosted Git somewhere.

On your remote FreeBSD server, for example:

# pkg install git-lite
$ mkdir ~/shinyrepo
$ cd ~/shinyrepo
$ git init --bare

On your workstation:

$ git clone username@host:shinyrepo

This is assuming the repo is in your home directory, which in production you probably would stash—ah, so good—somewhere else.

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!