Created Friday 02 December 2022
Recently I set up read-only Git repository hosting on Dreamhost for my project JACL. This was kind of tricky, so here are the steps:
cd
into the directory corresponding to your hosted domain.mkdir your-repo.git
cd your-repo.git
git init --bare
cp hooks/post-update.sample hooks/post-update
git remote add origin ssh://user@northbend.dreamhost.com:/home/user/example.com/your-repo.git
substituting user
, northbend.dreamhost.com
, and example.com
with your particulars.git push -u origin master
git push
and anyone on the Internet should be able to git clone https://example.com/your-repo.git