Adding github section

This commit is contained in:
Ric Harvey 2024-05-03 14:47:50 +01:00
parent 575ed85762
commit a939d5326c
Signed by: ric
GPG key ID: CD63CE502B962F16
4 changed files with 21 additions and 1 deletions

View file

@ -29,10 +29,30 @@ Lets look at how you can set up a new remote repository on Gitlab/Github, so you
- The next step is to get the URL for the git repository you want to clone. You can do this by going to the green **code** button and clicking it. - The next step is to get the URL for the git repository you want to clone. You can do this by going to the green **code** button and clicking it.
- If you intend to commit code back select the SSH URL. - If you intend to commit code back select the SSH URL.
![Get the SSH URL](./img/clone-repo.png) ![Get the SSH URL](./img/new-repo.png)
> If you want to just pull the code down to use locally you can use HTTPS, this is especially useful if you don't have permissions on the repository. > If you want to just pull the code down to use locally you can use HTTPS, this is especially useful if you don't have permissions on the repository.
</details>
<br/>
<details>
<summary>Using Github</summary>
- login into Github
- Click new on the left hand side of the page
![Create a new repository](./img/gh-new-repo.png)
- Now fill out the name of the repository in name and change any settings you need.
![Setup the project](./img/gh-setup-project.png)
> Make sure its a unique name in your namespace.
- Your repository is now created. You can copy the URL for it from the information in **quickstart** as you'll need this for the next section
![Repository created](./img/gh-new-repo.png)
</details> </details>
### Clone the new repository ### Clone the new repository

BIN
img/gh-create-project.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

BIN
img/gh-new-repo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

BIN
img/gh-setup-project.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB