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
Commits
ab015d60
Commit
ab015d60
authored
4 years ago
by
Fanch
Browse files
Options
Downloads
Plain Diff
Merge branch 'by_gildas' into 'master'
add some quote (review) See merge request
!1
parents
5ef92576
12d73f3c
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
add some quote (review)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+29
-29
29 additions, 29 deletions
README.md
with
29 additions
and
29 deletions
README.md
+
29
−
29
View file @
ab015d60
...
@@ -17,13 +17,13 @@
...
@@ -17,13 +17,13 @@
-
Every git repository is independant
-
Every git repository is independant
#### Command:
#### Command:
-
mkdir my_project
-
`
mkdir my_project
`
-
git init
-
`
git init
`
## 3. Create file in
ui
## 3. Create file in
GUI
#### Exercice:
#### 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"
-
add content in this file, like "hello world"
#### Concept
#### Concept
...
@@ -39,13 +39,13 @@
...
@@ -39,13 +39,13 @@
-
get content and modification
-
get content and modification
#### Command
#### Command
-
git remote
-
`
git remote
`
-
git pull
-
`
git pull
`
## 5. Create file on your computer
## 5. Create file on your computer
#### Exercice:
#### 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"
-
add content in this file, like "I love linux"
#### Concept:
#### Concept:
...
@@ -53,9 +53,9 @@
...
@@ -53,9 +53,9 @@
-
commit message
-
commit message
#### Command:
#### Command:
-
git add
-
`
git add
`
-
git status
-
`
git status
`
-
git commit
-
`
git commit
`
## 6. Report modification on Gitlab/Github
## 6. Report modification on Gitlab/Github
...
@@ -66,16 +66,16 @@
...
@@ -66,16 +66,16 @@
-
compare history
-
compare history
#### Command:
#### Command:
-
git push
-
`
git push
`
-
git status
-
`
git status
`
-
git log
-
`
git log
`
## 7. Pause 5 minutes
## 7. Pause 5 minutes
## 8. Create Branch
## 8. Create Branch
#### Exercise:
#### Exercise:
-
create a local branch my_first_branch
-
create a local
`
branch my_first_branch
`
-
Modify a file
-
Modify a file
-
Push the branch on github/gitlab
-
Push the branch on github/gitlab
...
@@ -84,14 +84,14 @@
...
@@ -84,14 +84,14 @@
-
best practice (master/main as ref, branch for bugfix/feature)
-
best practice (master/main as ref, branch for bugfix/feature)
#### Command:
#### Command:
-
git checkout
-
`
git checkout
`
-
git commit
-
`
git commit
`
-
git push
-
`
git push
`
## 9. Create Merge Request
## 9. Create Merge Request
#### Exercise:
#### 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
-
wait for comment on other person merge request
-
get local modif after merge
-
get local modif after merge
...
@@ -100,8 +100,8 @@
...
@@ -100,8 +100,8 @@
-
merge
-
merge
#### Command:
#### Command:
-
git fetch
-
`
git fetch
`
-
git merge
-
`
git merge
`
## 10. Get existing repository
## 10. Get existing repository
...
@@ -113,14 +113,14 @@
...
@@ -113,14 +113,14 @@
-
fork
-
fork
#### Command:
#### Command:
-
git clone
-
`
git clone
`
-
git remote
-
`
git remote
`
## 11. Propose change
## 11. Propose change
#### Exercise:
#### Exercise:
-
Create a Local Branch
-
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
-
Push on your forked repository
-
Create a Merge Request
-
Create a Merge Request
...
@@ -128,10 +128,10 @@
...
@@ -128,10 +128,10 @@
-
share work
-
share work
#### Comand:
#### Comand:
-
git checkout
-
`
git checkout
`
-
git add
-
`
git add
`
-
git commit
-
`
git commit
`
-
git push
-
`
git push
`
## 12. Update your fork
## 12. Update your fork
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
-
keep master/main clean
-
keep master/main clean
#### Command:
#### Command:
-
git pull
-
`
git pull
`
-
git push
-
`
git push
`
## 13. Pause 5 minutes
## 13. Pause 5 minutes
...
...
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