diff --git a/cdpw_tp1_SERRE_PRUNIER.md b/cdpw_tp1_SERRE_PRUNIER.md index 41e7d5e6cd72e6abd6f5899d12be236d6e79da0d..646d963c75270db661bf7c0332c6a1577eae5e02 100644 --- a/cdpw_tp1_SERRE_PRUNIER.md +++ b/cdpw_tp1_SERRE_PRUNIER.md @@ -164,10 +164,40 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge 1 file changed, 19 insertions(+) ``` 0. Aficher le status de votre repo `*` + ```git + clserre1@A210PC12:/h/Documents/cdpw $ git status + On branch SERRE_PRUNIER + Changes not staged for commit: + (use "git add <file>..." to update what will be committed) + (use "git checkout -- <file>..." to discard changes in working directory) + + modified: cdpw_tp1_SERRE_PRUNIER.md + + no changes added to commit (use "git add" and/or "git commit -a") + clserre1@A210PC12:/h/Documents/cdpw $ git commit -am"Q2.2" + [SERRE_PRUNIER a4e6b94] Q2.2 + 1 file changed, 10 insertions(+) + ``` 0. Créez une branche pour _développer_ la réponse de ce point (nommez là `mybranch-2.4` par exemple) - 0. Afficher un historique sous forme de graph (`a dog`) de votre repo - 0. Pourquoi les 2 branches pointent elles sur la même révision ?`*` - 0. Afficher à nouvea l'historique pour montrer les modifications suite au précédent commit `*` + ```git + clserre1@A210PC12:/h/Documents/cdpw $ git checkout -b "SERRE_PRUNIER-2.3" + Switched to a new branch 'SERRE_PRUNIER-2.3' + M cdpw_tp1_SERRE_PRUNIER.md + ``` + 1. Afficher un historique sous forme de graph (`a dog`) de votre repo + ```git + clserre1@A210PC12:/h/Documents/cdpw $ git log --all --decorate --oneline --graph* a4e6b94 (HEAD -> SERRE_PRUNIER-2.3, SERRE_PRUNIER) Q2.2 + * bd03bc0 Q2.1 + * ef6b3f6 (master) Q1.14 + * 9573e3c Q1.12 + * 3bd908e Q1.9 + * b28292b Q1.8 + * dd449ba Q1.6 + * 7b7f60f Q1.2 + ``` + 2. Pourquoi les 2 branches pointent elles sur la même révision ?`*` + Les deux branches sont au même niveau de `commit`. + 3. Afficher à nouveau l'historique pour montrer les modifications suite au précédent commit `*` 0. Revenir la brache `mybranch` 0. Où sont passé vos reponces au point 2.4 ? `*` 0. Affichez un historique sous forme de graph (`a dog`) de votre repo, Que peux ton en dire ?