mirror of
https://gitlab.com/ric_harvey/git-guide.git
synced 2024-11-23 20:24:02 +00:00
Adding github section
This commit is contained in:
parent
575ed85762
commit
a939d5326c
4 changed files with 21 additions and 1 deletions
|
@ -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.
|
||||
- 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.
|
||||
|
||||
</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>
|
||||
|
||||
### Clone the new repository
|
||||
|
|
BIN
img/gh-create-project.png
Normal file
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
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
BIN
img/gh-setup-project.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 120 KiB |
Loading…
Reference in a new issue