Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
courses
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
school
courses
Commits
b3503820
Commit
b3503820
authored
6 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
explanations about forks
parent
1c6ce5f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cloneRepo.md
+34
-3
34 additions, 3 deletions
cloneRepo.md
list.json
+2
-2
2 additions, 2 deletions
list.json
with
36 additions
and
5 deletions
cloneRepo.md
+
34
−
3
View file @
b3503820
...
...
@@ -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
```
...
...
This diff is collapsed.
Click to expand it.
list.json
+
2
−
2
View file @
b3503820
...
...
@@ -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"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment