diff --git a/cr.md b/REDA_YOUSSEF.md similarity index 91% rename from cr.md rename to REDA_YOUSSEF.md index 48ea5ac783dcff42b2514392bd98f243f943402f..be7e4fd73f40a2ad44f9b22f53d2cefdef5d131a 100644 --- a/cr.md +++ b/REDA_YOUSSEF.md @@ -3,8 +3,8 @@ # Infos étudiant : Par binôme Nom Prénom: - * BENCHRAA Mohamed Reda - * NIDABRAHIM Youssef + * Mohamed Reda BENCHRAA + * Youssef NIDABRAHIM ## TP 1 @@ -31,23 +31,42 @@ $ git commit -m "Q1.3" 1 file changed, 258 insertions(+) create mode 100644 cr.md ``` + 0. Afficher la status de votre copie de travail ``` -git staus +$ git status +On branch master +nothing to commit, working tree clean ``` + 0. Modifiez le CR pour supprimer la première partie et indiquez vos noms (n'oublier pas de faire un `git add` pour marque le fichier comme devant être ajouté) `*` ``` -git add . -git commit -m "Q1.5" +$ git add . +``` + > On commite cette étape Q1.5 ``` +$ git commit -m "Q1.5" +[master 6866275] Q1.5 + 1 file changed, 7 insertions(+), 3 deletions(-) +``` + 0. Afficher l'historique de votre repo ``` -git log +$ git log +commit 80f71a0487d0b236a26bfd9e540582b68cad7943 +Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> +Date: Mon Feb 12 21:15:48 2018 +0100 + Q1.5 +commit 3ec344ecfd24df41ca97396f27b52ec570297ce3 +Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> +Date: Mon Feb 12 21:02:43 2018 +0100 + Q1.3 ``` + 0. Renommer ce fichier en préfixant avec vos noms en amendant le commit précédent (`git commit -m "mon message"` pour indiquer le mesage de commit directement) `*` ``` -git mv tp1.md BENCHRAA_NIDABRAHIM.md -git add . +$ git mv cr.md REDA_YOUSSEF.md +$ git add * git commit -m "Q1.7" --amend ``` 0. Afficher l'historique de votre repo