Skip to content
Snippets Groups Projects
Commit a38f03f0 authored by NIDABRAHIM Youssef's avatar NIDABRAHIM Youssef
Browse files

Q1.9

parent abfd2d91
No related branches found
No related tags found
No related merge requests found
......@@ -67,17 +67,38 @@ Date: Mon Feb 12 21:02:43 2018 +0100
```
$ git mv cr.md REDA_YOUSSEF.md
$ git add *
git commit -m "Q1.7" --amend
```
> On commite cette étape Q1.7 en amendant le commit précédent
```
$ git commit -m "Q1.7" --amend
[master abfd2d9] Q1.7
Date: Mon Feb 12 21:15:48 2018 +0100
1 file changed, 27 insertions(+), 8 deletions(-)
rename cr.md => REDA_YOUSSEF.md (91%)
```
0. Afficher l'historique de votre repo
```
git log
$ git log
commit abfd2d91c6fff3d02fd132e77c012cc695b2ec84
Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
Date: Mon Feb 12 21:15:48 2018 +0100
Q1.7
commit 3ec344ecfd24df41ca97396f27b52ec570297ce3
Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
Date: Mon Feb 12 21:02:43 2018 +0100
Q1.3
```
> **NOTE:** On remarque bien que le commit Q1.5 est remplacer par celui de Q1.7
0. Il ne devrait y avoir que deux entrées dans l'historique pourquoi ? `*`
```
> On doit y avoir exactement deux entrées dans l'historique `Q1.3` et `Q1.7` et cela parcequ'on avait remplacer le commit `Q1.5` par `Q1.7` en ajoutant `--amend` à la fin de la commande `commit`
```
git add .
git commit -m "Q1.9"
```
0. Créer un nouveau fichier, nommé start, contenant la date et l'heure actuelle `*`
```
touch start
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment