In honor of World Give Up GitHub day, here's a quick guide to how to serve up your own git repos.
In an empty directory readable from WWW (that has the URL you want your repo to have, for cloning) that you also can write to over SSH, run
git init --bare
mv hooks/post-update.sample hooks/post-update
Make sure the directory has the permissions you want for web (world readable, not writable).
Set the SSH path to the directory as a remote on your local copy of the repo, and push to it and you're done.
https://idiomdrottning.org/hosting-git-repos
In an empty directory readable from WWW (that has the URL you want your repo to have, for cloning) that you also can write to over SSH, run
git init --bare
mv hooks/post-update.sample hooks/post-update
Make sure the directory has the permissions you want for web (world readable, not writable).
Set the SSH path to the directory as a remote on your local copy of the repo, and push to it and you're done.
https://idiomdrottning.org/hosting-git-repos