~/selfhut

908afdb7c6eb7c685b44c16313ef5fb86f152a2b — Arthur Melton 68f6c1cd 2 years ago
teach how to http clone the right way
1 files changed, 4 insertions(+), 2 deletions(-)

M README.md
M README.md => README.md +4 -2
@@ 28,8 28,10 @@ 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 run
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
git update-server-info
#!/bin/sh
exec git update-server-info
```
This should create the git and make it so that people can actually clone it!