Skip to content
Snippets Groups Projects
Commit b3503820 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

explanations about forks

parent 1c6ce5f5
No related branches found
No related tags found
No related merge requests found
......@@ -12,25 +12,56 @@ If you did not configure your SSH key, clone using HTTPS:
```bash
$ git clone https://github.com/userName/myRepo.git myRepo
```
<br>
<br>
<div class="fragment">
You will be prompted to enter your credentials.
## What is a `fork`?
<div class="fragment">
<img src="img/fork.jpg" class="as-is" />
[//]: <> (http://www.cndajin.com/data/wls/246/22302193.jpg)
## Not really ...
<img src="img/fork-crossed.png" class="as-is" />
## What is a `fork`?
In general, when contributing to a repository, you only have **read** access.
<div class="fragment">
In other words, you can only **pull** (unless it is your own repository or access has been granted).
<div class="fragment">
<br>
In general, you **cannot write** changes. In other words, you do not have **push** access.
<div class="fragment">
You have to work on your **own copy**.
<div class="fragment">
<br>
In other words, you have to work on your own <font color="red">fork</font>.
## Time to practice!
(Live Demo)
<br>
Clone the practice repository: <br><br>
Fork the practice repository: <br><br>
https://git-r3lab.uni.lu/R3.training/git.practice
Then, clone your fork to your home directory!
<div class="fragment">
<br>
```bash
$ git clone ssh://git@git-r3lab-server.uni.lu:8022/R3.training/
$ git clone ssh://git@git-r3lab-server.uni.lu:8022/yourUserName/
git.practice.git practice
```
......
......@@ -30,13 +30,13 @@
}
},
{
"filename": "github_gitlab.md",
"filename": "installation.md",
"attr": {
"data-background": "img/whiteBG.jpg"
}
},
{
"filename": "installation.md",
"filename": "github_gitlab.md",
"attr": {
"data-background": "img/whiteBG.jpg"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment