Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Git training
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Fanch
Git training
Merge requests
!1
add some quote (review)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add some quote (review)
by_gildas
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Gildas Le Corguillé
requested to merge
by_gildas
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
12d73f3c
1 commit,
4 years ago
1 file
+
29
−
29
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
README.md
+
29
−
29
Options
@@ -17,13 +17,13 @@
-
Every git repository is independant
#### Command:
-
mkdir my_project
-
git init
-
`
mkdir my_project
`
-
`
git init
`
## 3. Create file in
ui
## 3. Create file in
GUI
#### Exercice:
-
create a file called first_file.txt in the
ui
-
create a file called
`
first_file.txt
`
in the
GUI
-
add content in this file, like "hello world"
#### Concept
@@ -39,13 +39,13 @@
-
get content and modification
#### Command
-
git remote
-
git pull
-
`
git remote
`
-
`
git pull
`
## 5. Create file on your computer
#### Exercice:
-
create a file called second_file.txt in my_project folder
-
create a file called
`
second_file.txt
`
in
`
my_project folder
`
-
add content in this file, like "I love linux"
#### Concept:
@@ -53,9 +53,9 @@
-
commit message
#### Command:
-
git add
-
git status
-
git commit
-
`
git add
`
-
`
git status
`
-
`
git commit
`
## 6. Report modification on Gitlab/Github
@@ -66,16 +66,16 @@
-
compare history
#### Command:
-
git push
-
git status
-
git log
-
`
git push
`
-
`
git status
`
-
`
git log
`
## 7. Pause 5 minutes
## 8. Create Branch
#### Exercise:
-
create a local branch my_first_branch
-
create a local
`
branch my_first_branch
`
-
Modify a file
-
Push the branch on github/gitlab
@@ -84,14 +84,14 @@
-
best practice (master/main as ref, branch for bugfix/feature)
#### Command:
-
git checkout
-
git commit
-
git push
-
`
git checkout
`
-
`
git commit
`
-
`
git push
`
## 9. Create Merge Request
#### Exercise:
-
in gitlab/github create a merge request for my_first_branch
-
in gitlab/github create a merge request for
`
my_first_branch
`
-
wait for comment on other person merge request
-
get local modif after merge
@@ -100,8 +100,8 @@
-
merge
#### Command:
-
git fetch
-
git merge
-
`
git fetch
`
-
`
git merge
`
## 10. Get existing repository
@@ -113,14 +113,14 @@
-
fork
#### Command:
-
git clone
-
git remote
-
`
git clone
`
-
`
git remote
`
## 11. Propose change
#### Exercise:
-
Create a Local Branch
-
Add a file your_firstname.txt with content like "I love git"
-
Add a file
`
your_firstname.txt
`
with content like "I love git"
-
Push on your forked repository
-
Create a Merge Request
@@ -128,10 +128,10 @@
-
share work
#### Comand:
-
git checkout
-
git add
-
git commit
-
git push
-
`
git checkout
`
-
`
git add
`
-
`
git commit
`
-
`
git push
`
## 12. Update your fork
@@ -142,8 +142,8 @@
-
keep master/main clean
#### Command:
-
git pull
-
git push
-
`
git pull
`
-
`
git push
`
## 13. Pause 5 minutes
Loading