Parcourir la source

figures depot local

Julien Dehos il y a 8 ans
Parent
commit
0a758fce90

+ 13 - 8
depot_local.md

@@ -38,7 +38,7 @@ peut rien casser.  N'hésitez donc pas à la lancer pour voir où vous en êtes.
 
 
 Il faut indiquer explicitement les fichiers que git doit journaliser.  
 Il faut indiquer explicitement les fichiers que git doit journaliser.  
 
 
-Par exemple, imaginons qu'on ouvre un nouveau fichier LaTeX `rapport_01.tex`
+Par exemple, imaginons qu'on ouvre un nouveau fichier LaTeX `papier.tex`
 dans notre projet.  
 dans notre projet.  
 
 
 ![](depot_local_04.png)
 ![](depot_local_04.png)
@@ -47,7 +47,7 @@ Et on affiche l'état du dépôt.
 
 
 ![](depot_local_05.png)
 ![](depot_local_05.png)
 
 
-Git nous indique que le fichier `rapport_01.tex` existe bien dans le dossier
+Git nous indique que le fichier `papier.tex` existe bien dans le dossier
 (ainsi qu'un fichier de sauvegarde), mais qu'il ne fait pas partie du dépôt. 
 (ainsi qu'un fichier de sauvegarde), mais qu'il ne fait pas partie du dépôt. 
 
 
 Pour ajouter un fichier au dépôt, il faut utiliser la commande `git add`. 
 Pour ajouter un fichier au dépôt, il faut utiliser la commande `git add`. 
@@ -88,7 +88,7 @@ train de valider puis enregistrez et quittez.
 
 
 ![](depot_local_09.png)
 ![](depot_local_09.png)
 
 
-Git crée alors le nouveau commit, qui valide ici le fichier `rapport_01.tex`.
+Git crée alors le nouveau commit, qui valide ici le fichier `papier.tex`.
 
 
 ![](depot_local_10.png)
 ![](depot_local_10.png)
 
 
@@ -123,7 +123,7 @@ automatiquement). Par exemple, si on compile le code LaTeX de notre projet...
 Pour les ignorer lors des `git status`, il suffit de les indiquer dans un
 Pour les ignorer lors des `git status`, il suffit de les indiquer dans un
 fichier `.gitignore`, dans le répertoire principal du projet. Dans le
 fichier `.gitignore`, dans le répertoire principal du projet. Dans le
 `.gitignore`, on peut indiquer des noms de fichier complets (par exemple,
 `.gitignore`, on peut indiquer des noms de fichier complets (par exemple,
-`rapport_01.pdf`) ou utiliser des motifs de noms (par exemple, `*.log`).
+`papier.pdf`) ou utiliser des motifs de noms (par exemple, `*.log`).
 
 
 ![](depot_local_14.png)
 ![](depot_local_14.png)
 
 
@@ -178,9 +178,10 @@ Ce qui correspond au graphe suivant.
 
 
 ![](depot_local_log.svg)
 ![](depot_local_log.svg)
 
 
-La commande `git log` permet d'afficher l'historique des commits.
+La commande `git log` (ou `git log --abbrev-commit`) permet d'afficher
+l'historique des commits.
 
 
-![](depot_local_20.png)
+![](depot_local_20b.png)
 
 
 On peut également le voir avec un client graphique comme `gitg`.
 On peut également le voir avec un client graphique comme `gitg`.
 
 
@@ -209,11 +210,15 @@ courant...
 
 
 ## Marquer un commit
 ## Marquer un commit
 
 
-La commande `git tag` permet de nommer des commits pour, par exemple, indiquer
-une version ou pour pouvoir revenir plus facilement à un commit particulier.
+La commande `git tag` permet d'étiqueter des commits.
 
 
 ![](depot_local_22.png)
 ![](depot_local_22.png)
 
 
+Ces étiquettes permettent d'indiquer des versions du projet et de revenir plus
+facilement à un commit particulier.
+
+![](depot_local_22b.png)
+
 ![](depot_local_checkout_03.svg)
 ![](depot_local_checkout_03.svg)
 
 
 ## Supprimer des commits précédents
 ## Supprimer des commits précédents

BIN
depot_local_01.png


BIN
depot_local_02.png


BIN
depot_local_04.png


BIN
depot_local_05.png


BIN
depot_local_06.png


BIN
depot_local_07.png


BIN
depot_local_08.png


BIN
depot_local_09.png


BIN
depot_local_10.png


BIN
depot_local_11.png


+ 1 - 1
depot_local_11.svg

@@ -4,7 +4,7 @@
 <g transform="translate(0,80)">
 <g transform="translate(0,80)">
 
 
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="30" y="55" font-size="18"> 8f6... </text>
+<text x="30" y="55" font-size="18"> 9ac... </text>
 
 
 <defs>
 <defs>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>

BIN
depot_local_12.png


BIN
depot_local_13.png


BIN
depot_local_14.png


BIN
depot_local_15.png


+ 1 - 1
depot_local_15.svg

@@ -4,7 +4,7 @@
 <g transform="translate(0,80)">
 <g transform="translate(0,80)">
 
 
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="30" y="55" font-size="18"> 8f6... </text>
+<text x="30" y="55" font-size="18"> 9ac... </text>
 
 
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M80,50 L110,50' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M80,50 L110,50' />
 
 

BIN
depot_local_16.png


+ 2 - 2
depot_local_16.svg

@@ -4,12 +4,12 @@
 <g transform="translate(0,80)">
 <g transform="translate(0,80)">
 
 
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="30" y="55" font-size="18"> 8f6... </text>
+<text x="30" y="55" font-size="18"> 9ac... </text>
 
 
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M80,50 L110,50' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M80,50 L110,50' />
 
 
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="130" y="55" font-size="18"> 135... </text>
+<text x="130" y="55" font-size="18"> 3ca... </text>
 
 
 <defs>
 <defs>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>

BIN
depot_local_17.png


+ 3 - 3
depot_local_17.svg

@@ -4,15 +4,15 @@
 <g transform="translate(0,80)">
 <g transform="translate(0,80)">
 
 
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="30" y="55" font-size="18"> 8f6... </text>
+<text x="30" y="55" font-size="18"> 9ac... </text>
 
 
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M80,50 L110,50' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M80,50 L110,50' />
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="130" y="55" font-size="18"> 135... </text>
+<text x="130" y="55" font-size="18"> 3ca... </text>
 
 
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M180,50 L210,50' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M180,50 L210,50' />
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="230" y="55" font-size="18"> ed1... </text>
+<text x="230" y="55" font-size="18"> a16... </text>
 
 
 <defs>
 <defs>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>

BIN
depot_local_18.png


+ 4 - 4
depot_local_18.svg

@@ -4,19 +4,19 @@
 <g transform="translate(0,80)">
 <g transform="translate(0,80)">
 
 
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="30" y="55" font-size="18"> 8f6... </text>
+<text x="30" y="55" font-size="18"> 9ac... </text>
 
 
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M80,50 L110,50' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M80,50 L110,50' />
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="130" y="55" font-size="18"> 135... </text>
+<text x="130" y="55" font-size="18"> 3ca... </text>
 
 
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M180,50 L210,50' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M180,50 L210,50' />
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="230" y="55" font-size="18"> ed1... </text>
+<text x="230" y="55" font-size="18"> a16... </text>
 
 
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M280,50 L310,50' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M280,50 L310,50' />
 <circle cx="350" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="350" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="330" y="55" font-size="18"> 7f5... </text>
+<text x="330" y="55" font-size="18"> 13a... </text>
 
 
 <defs>
 <defs>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>

BIN
depot_local_19.png


BIN
depot_local_20.png


BIN
depot_local_20b.png


BIN
depot_local_21.png


BIN
depot_local_22.png


BIN
depot_local_22b.png


+ 5 - 5
depot_local_checkout_01.svg

@@ -4,19 +4,19 @@
 <g transform="translate(0,80)">
 <g transform="translate(0,80)">
 
 
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="30" y="55" font-size="18"> 59d... </text>
+<text x="30" y="55" font-size="18"> 9ac... </text>
 
 
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="130" y="55" font-size="18"> 7b3... </text>
+<text x="130" y="55" font-size="18"> 3ca... </text>
 
 
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="230" y="55" font-size="18"> 073... </text>
+<text x="230" y="55" font-size="18"> a16... </text>
 
 
 <circle cx="350" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="350" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="330" y="55" font-size="18"> ff0... </text>
+<text x="330" y="55" font-size="18"> 13a... </text>
 
 
 <circle cx="450" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="450" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="430" y="55" font-size="18"> a8b... </text>
+<text x="430" y="55" font-size="18"> 055... </text>
 
 
 <defs>
 <defs>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>

BIN
depot_local_checkout_02.png


+ 5 - 5
depot_local_checkout_02.svg

@@ -4,19 +4,19 @@
 <g transform="translate(0,80)">
 <g transform="translate(0,80)">
 
 
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="30" y="55" font-size="18"> 59d... </text>
+<text x="30" y="55" font-size="18"> 9ac... </text>
 
 
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="130" y="55" font-size="18"> 7b3... </text>
+<text x="130" y="55" font-size="18"> 3ca... </text>
 
 
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="230" y="55" font-size="18"> 073... </text>
+<text x="230" y="55" font-size="18"> a16... </text>
 
 
 <circle cx="350" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="350" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="330" y="55" font-size="18"> ff0... </text>
+<text x="330" y="55" font-size="18"> 13a... </text>
 
 
 <circle cx="450" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="450" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="430" y="55" font-size="18"> a8b... </text>
+<text x="430" y="55" font-size="18"> 055... </text>
 
 
 <defs>
 <defs>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>
 <marker id='head' orient="auto" markerWidth='4' markerHeight='8' refX='0.2' refY='3'>

+ 1 - 1
depot_local_checkout_03.svg

@@ -34,7 +34,7 @@
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M150,-30 L150,10' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M150,-30 L150,10' />
 
 
 <rect x="100" y="120" width="100" height="40" fill="khaki" stroke-width="2" stroke="black" />
 <rect x="100" y="120" width="100" height="40" fill="khaki" stroke-width="2" stroke="black" />
-<text x="110" y="145" font-size="18"> version0 </text>
+<text x="110" y="145" font-size="18"> version1 </text>
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M150,120 L150,90' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M150,120 L150,90' />
 
 
 <rect x="410" y="120" width="80" height="40" fill="orange" stroke-width="2" stroke="black" />
 <rect x="410" y="120" width="80" height="40" fill="orange" stroke-width="2" stroke="black" />

+ 1 - 1
depot_local_checkout_04.svg

@@ -29,7 +29,7 @@
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M350,-30 L350,10' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M350,-30 L350,10' />
 
 
 <rect x="100" y="120" width="100" height="40" fill="khaki" stroke-width="2" stroke="black" />
 <rect x="100" y="120" width="100" height="40" fill="khaki" stroke-width="2" stroke="black" />
-<text x="110" y="145" font-size="18"> version0 </text>
+<text x="110" y="145" font-size="18"> version1 </text>
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M150,120 L150,90' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M150,120 L150,90' />
 
 
 <rect x="210" y="120" width="80" height="40" fill="orange" stroke-width="2" stroke="black" />
 <rect x="210" y="120" width="80" height="40" fill="orange" stroke-width="2" stroke="black" />

+ 1 - 1
depot_local_checkout_05.svg

@@ -26,7 +26,7 @@
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M250,-30 L250,10' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M250,-30 L250,10' />
 
 
 <rect x="100" y="120" width="100" height="40" fill="khaki" stroke-width="2" stroke="black" />
 <rect x="100" y="120" width="100" height="40" fill="khaki" stroke-width="2" stroke="black" />
-<text x="110" y="145" font-size="18"> version0 </text>
+<text x="110" y="145" font-size="18"> version1 </text>
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M150,120 L150,90' />
 <path marker-end='url(#head)' stroke-width='2' stroke='black' d='M150,120 L150,90' />
 
 
 <rect x="210" y="120" width="80" height="40" fill="orange" stroke-width="2" stroke="black" />
 <rect x="210" y="120" width="80" height="40" fill="orange" stroke-width="2" stroke="black" />

+ 5 - 5
depot_local_log.svg

@@ -4,19 +4,19 @@
 <g transform="translate(0,80)">
 <g transform="translate(0,80)">
 
 
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="50" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="30" y="55" font-size="18"> 59d... </text>
+<text x="30" y="55" font-size="18"> 9ac... </text>
 
 
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="150" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="130" y="55" font-size="18"> 7b3... </text>
+<text x="130" y="55" font-size="18"> 3ca... </text>
 
 
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="250" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="230" y="55" font-size="18"> 073... </text>
+<text x="230" y="55" font-size="18"> a16... </text>
 
 
 <circle cx="350" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="350" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="330" y="55" font-size="18"> ff0... </text>
+<text x="330" y="55" font-size="18"> 13a... </text>
 
 
 <circle cx="450" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
 <circle cx="450" cy="50" r="30" stroke="black" stroke-width="2" fill="lightgreen"/>
-<text x="430" y="55" font-size="18"> a8b... </text>
+<text x="430" y="55" font-size="18"> 055... </text>
 
 
 <circle cx="550" cy="50" r="30" stroke="black" stroke-width="2" fill="white"/>
 <circle cx="550" cy="50" r="30" stroke="black" stroke-width="2" fill="white"/>
 <text x="530" y="55" font-size="18"> </text>
 <text x="530" y="55" font-size="18"> </text>