|
1 | | -## Step 2: Commit a file |
| 1 | +## Étape 2, committer un fichier |
2 | 2 |
|
3 | | -Now make a small change on your branch and commit it. |
| 3 | +Fais une petite modification sur ta branche et crée un commit. |
4 | 4 |
|
5 | | -### 📖 Theory: What is a commit? |
| 5 | +### 📖 Théorie, c’est quoi un commit ? |
6 | 6 |
|
7 | | -A commit records a snapshot of your changes with a message explaining **why** you made them. |
| 7 | +Un commit enregistre un instantané de tes changements, avec un message qui explique **pourquoi**. |
8 | 8 |
|
9 | | -### ⌨️ Activity: Edit `playground/README.md` |
| 9 | +### ⌨️ Exercice, éditer `playground/README.md` |
10 | 10 |
|
11 | | -1. Create (if needed) and edit **`playground/README.md`** on **`my-first-branch`**. |
12 | | -2. Add 2–3 lines introducing yourself. Please include the word **Hello** so the check can confirm your edit. |
13 | | -3. Commit your change. |
14 | | - |
15 | | -(Optional CLI) |
| 11 | +1. Crée si besoin et édite **`playground/README.md`** sur **`my-first-branch`**. |
| 12 | +2. Ajoute 2–3 lignes pour te présenter, **incluant le mot Hello**. |
| 13 | +3. Committe ta modification. |
16 | 14 |
|
| 15 | +Option ligne de commande |
17 | 16 | ```bash |
18 | 17 | mkdir -p playground |
19 | | -printf "Hello, I'm learning GitHub Basics!\n" >> playground/README.md |
| 18 | +printf "Hello, j'apprends GitHub Basics !\n" >> playground/README.md |
20 | 19 | git add playground/README.md |
21 | | -git commit -m "docs: add a short introduction in playground" |
| 20 | +git commit -m "docs: ajouter une courte présentation dans playground" |
22 | 21 | git push origin my-first-branch |
23 | 22 | ``` |
24 | 23 |
|
25 | 24 | <details> |
26 | | -<summary>Having trouble? 🤷</summary><br/> |
27 | | - |
28 | | -Ensure you’re on `my-first-branch` when editing. |
29 | | -If committing via the web editor, use a clear message, for example “docs: add intro”. |
30 | | - |
31 | | -</details> |
| 25 | +<summary>Un souci ? 🤷</summary><br/> |
| 26 | +Assure-toi d’être sur `my-first-branch` pour éditer. |
| 27 | +Dans l’éditeur web, mets un message clair, par exemple “docs: add intro”. |
| 28 | +</details> |
0 commit comments