diff --git a/content/rambles/git-server.md b/content/rambles/git-server.md index 7ba9b02..ccc16f7 100644 --- a/content/rambles/git-server.md +++ b/content/rambles/git-server.md @@ -73,7 +73,8 @@ cat .pub >> ~/.ssh/authorized_keys You should now be able to log into your host as the `git` user with using ``. Setting up the route from client to server is half the work. -Next step, to make this actually server a Git repository, is to create one. +Next step. +Make this actually serve Git repositories. All this requires is a bare Git repository somewhere within `/srv/git`. To do this, log in as the `git` user and run: ```sh @@ -97,7 +98,7 @@ git commit -m "Initial commit" git push -u origin main # assuming you use main as your default branch name ``` -To clone this repository on another machine, add the `` SSH keypair and related configuration section in `~/.ssh/config` so said machine and run: +To clone this repository on another machine, add the `` SSH keypair and related configuration section in `~/.ssh/config` to said machine and run: ```sh git clone -git:/srv/git/.git ```