Git Hosting: Difference between revisions

From pronounmail wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
you can host [https://git-scm.com/ git] repositories on pronounmail.com, if you'd like.
you can host [https://git-scm.com/ git] repositories on pronounmail.com, if you'd like.
{{quote|It’s time to git hosting!|Abraham Lincoln}}


== creating them ==
== creating them ==
Line 14: Line 15:


if you want, you can use [[PHP|php]] or [[CGI|cgi]] to build your own repository viewer, like on [https://leah.pronounmail.com/code/ leah's really cool page]
if you want, you can use [[PHP|php]] or [[CGI|cgi]] to build your own repository viewer, like on [https://leah.pronounmail.com/code/ leah's really cool page]
[[Category:Pages with some amount of information in them]]
[[Category:Pages with some amount of information in them]]

Latest revision as of 02:24, 2 September 2024

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