~/selfhut

selfhut/README.md -rw-r--r-- 1.47 kB
908afdb7 — Arthur Melton teach how to http clone the right way 2 years ago

            
5c44f94c Arthur Melton
8133eaae Arthur Melton
083ac62b arthurmelton
94e2262d arthurmelton
7dbdfabf arthurmelton
94e2262d arthurmelton
7dbdfabf arthurmelton
ac5fb3ff Arthur Melton
5c44f94c Arthur Melton
ac5fb3ff Arthur Melton
5c44f94c Arthur Melton
083ac62b arthurmelton
ac5fb3ff Arthur Melton
7dbdfabf arthurmelton
083ac62b arthurmelton
7dbdfabf arthurmelton
5c44f94c Arthur Melton
80cce623 Arthur Melton
5c44f94c Arthur Melton
7dbdfabf arthurmelton
273578a8 Arthur Melton
083ac62b arthurmelton
273578a8 Arthur Melton
5c1ce3a7 Arthur Melton
273578a8 Arthur Melton
468a751a Arthur Melton
f89ef9da Arthur Melton
468a751a Arthur Melton
273578a8 Arthur Melton
a7c4e07b Arthur Melton
083ac62b arthurmelton
a7c4e07b Arthur Melton
8811ff71 arthurmelton
68f6c1cd Arthur Melton
908afdb7 Arthur Melton
68f6c1cd Arthur Melton
908afdb7 Arthur Melton
abc5d5ed Arthur Melton
908afdb7 Arthur Melton
68f6c1cd Arthur Melton
273578a8 Arthur Melton
8811ff71 arthurmelton
273578a8 Arthur Melton



















































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# [git.arthurmelton.com](git.arthurmelton.com)

This is my git site, it took insperation from [Sourcehut](https://sourcehut.org/).
Its not a fork but its practecly a remake, just for my use case. Please support
Drew DeVault at [https://sourcehut.org/pricing/](https://sourcehut.org/pricing/).
If you are going to run this yourself. I really recommend supporting Drew DeVault
because without him this would not exist!

## Email

This can also run on any email server though a open imap connection. The actual
mailing list and creation of accounts are handled through different programs.
For every repo you need to make a email for it (ex. if I have a repo called
"My-Cool-Program" you need to make an email for it called 
"My-Cool-Program@example.com").

## Hosting

Simpily run the binary and a website is going to be hosted at port 8000. I would
also recoment using something like nginx to change the port and to do caching. If 
you want to change the config (this would make sense because at default it only
has a example user), edit the file in `$(XDG_CONFIG_HOME)/git-server/git-server.toml`
to your liking.

## Making a new git

To make a new git repo you need to run 
```sh
git init --bare my-repo.git
```
After you do this you will need to cd into the directory and make a file at the 
path `hooks/post-update` and set its contents to
```sh
#!/bin/sh
exec git update-server-info
```
This should create the git and make it so that people can actually clone it!