Git Hosting

From pronounmail wiki
Revision as of 10:05, 28 November 2024 by Blue Hair & their Fabulous Pronouns (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

you can host git repositories on pronounmail.com, if you'd like.

It’s time to git hosting!
—Abraham Lincoln

creating them

create a directory under /var/repo. if you're going to be making lots of repos, please create a folder under your name and put your repos in there. cd into your freshly-created directory and use git init --bare to initialise the repository. if you're concerned about other people touching your files, please take a second to set the permissions accordingly.

cloning them

you can clone a repository over http like this:

git clone https://pronounmail.com/clone/my_repository

note that the http endpoint is read only, if you want to be able to push changes to your repository, use ssh instead:

git clone username@pronounmail.com:/var/repo/my_repository

lookin at them

we currently don't have a cool web ui for browsing repositories, maybe soon.

if you want, you can use php or cgi to build your own repository viewer, like on leah's really cool page