diff --git a/README.md b/README.md index 8d6ad2f48e399e0399e220329b0c5339160be612..f2524b46e0886392ecb2789570b38593a15a4eea 100644 --- a/README.md +++ b/README.md @@ -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