Typos
This commit is contained in:
parent
170a972d1c
commit
ad6d79d539
|
@ -73,7 +73,8 @@ cat <git-key>.pub >> ~/.ssh/authorized_keys
|
|||
You should now be able to log into your host as the `git` user with using `<git-key>`.
|
||||
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 `<git-key>` SSH keypair and related configuration section in `~/.ssh/config` so said machine and run:
|
||||
To clone this repository on another machine, add the `<git-key>` SSH keypair and related configuration section in `~/.ssh/config` to said machine and run:
|
||||
```sh
|
||||
git clone <host>-git:/srv/git/<repo-name>.git
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue