diff --git a/Piat_Jullien_tp1.md b/Piat_Jullien_tp1.md index 3a879aa51b4eec39413c0aca372ef9acf4b9bdcb..e3fe8081ba33ff1034465faf1ae62260deb4134b 100644 --- a/Piat_Jullien_tp1.md +++ b/Piat_Jullien_tp1.md @@ -98,11 +98,73 @@ nothing added to commit but untracked files present (use "git add" to track) echo 'file2ignore' > .gitignore ``` 0. Lister le contenu du repertoire courant, afficher le status et la log +```bash +ls +``` +``` +file2ignore Piat_Jullien_tp1.md start +``` +```bash +git status +``` +``` +On branch master +nothing to commit, working tree clean +``` +```bash +git log +``` +``` +commit 2427558ba3f9d06a536b143ab022dd446307c675 +Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr> +Date: Mon Jan 8 18:55:12 2018 +0100 + + Q13 + +commit 7633f494a8da552658e67a9d2aa195be7bd7ea55 +Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr> +Date: Mon Jan 8 18:47:09 2018 +0100 + + Q10 + +commit 60ee8acb56651230fc78df0c134a35c8e093899a +Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr> +Date: Mon Jan 8 18:45:39 2018 +0100 + + Q9 + +commit 846659c679f900048496541ff54b78b6222b4611 +Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr> +Date: Mon Jan 8 18:28:26 2018 +0100 + + Q5 & Q7 +``` 0. Avant de commiter affichez les modifications par rapport à la précédente révision ? `*` +```bash +git diff Piat_Jullien_tp1.md +``` +``` +cf. q15.txt + ``` ##### 2. Les branches 0. Créez une branche portant votre nom et basculer sur cette branche (dans la suite du TP cette branche est désignée par `mybranch`) +```bash +git branch PiatJullien +git checkout PiatJullien +``` +``` +M Piat_Jullien_tp1.md +Switched to branch 'PiatJullien' +``` 0. Lister les branches locales et les fichiers présent dans le répertoire courant `*` +```bash +git branch +``` +``` +* PiatJullien + master +``` 0. Aficher le status de votre repo `*` 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 diff --git a/q15.txt b/q15.txt new file mode 100644 index 0000000000000000000000000000000000000000..ee50ba408c1f737435ddb925ba4cd328d904c43b --- /dev/null +++ b/q15.txt @@ -0,0 +1,52 @@ +diff --git a/Piat_Jullien_tp1.md b/Piat_Jullien_tp1.md +index 3a879aa..da817b7 100644 +--- a/Piat_Jullien_tp1.md ++++ b/Piat_Jullien_tp1.md +@@ -98,6 +98,47 @@ nothing added to commit but untracked files present (use "git add" to track) + echo 'file2ignore' > .gitignore + ``` + 0. Lister le contenu du repertoire courant, afficher le status et la log ++```bash^M ++ls^M ++```^M ++```^M ++file2ignore Piat_Jullien_tp1.md start^M ++```^M ++```bash^M ++git status^M ++```^M ++```^M ++On branch master^M ++nothing to commit, working tree clean^M ++```^M ++```bash^M ++git log^M ++```^M ++```^M ++commit 2427558ba3f9d06a536b143ab022dd446307c675^M ++Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>^M ++Date: Mon Jan 8 18:55:12 2018 +0100^M ++^M ++ Q13^M ++^M ++commit 7633f494a8da552658e67a9d2aa195be7bd7ea55^M ++Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>^M ++Date: Mon Jan 8 18:47:09 2018 +0100^M ++^M ++ Q10^M ++^M ++commit 60ee8acb56651230fc78df0c134a35c8e093899a^M ++Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>^M ++Date: Mon Jan 8 18:45:39 2018 +0100^M ++^M ++ Q9^M ++^M ++commit 846659c679f900048496541ff54b78b6222b4611^M ++Author: Nicolas Jullien <nicolas.jullien@poste.isima.fr>^M ++Date: Mon Jan 8 18:28:26 2018 +0100^M ++^M ++ Q5 & Q7^M ++```^M + 0. Avant de commiter affichez les modifications par rapport à la précédente révision ? `*` + + ##### 2. Les branches