From 7e0c825b9a15beadab866fba4cddcf8b1f6d04a4 Mon Sep 17 00:00:00 2001
From: Philippe Dosch <Philippe.Dosch@loria.fr>
Date: Tue, 18 Mar 2025 15:09:15 +0100
Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20de=20restructuration?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 basegit.tex      |  4 ----
 collabowork.tex  | 38 ++++++++++++++++++++++++++++++++++++--
 gitmain.tex      |  4 +++-
 maincommands.tex | 25 +++++++++++++------------
 4 files changed, 52 insertions(+), 19 deletions(-)

diff --git a/basegit.tex b/basegit.tex
index 6ce9589..0d1d2cd 100644
--- a/basegit.tex
+++ b/basegit.tex
@@ -1,9 +1,5 @@
 %======================================================================
 
-\section{Les bases de Git}
-
-%======================================================================
-
 \subsection{Principes liés à Git}
 
 %======================================================================
diff --git a/collabowork.tex b/collabowork.tex
index 4acc317..f50abf1 100644
--- a/collabowork.tex
+++ b/collabowork.tex
@@ -1,6 +1,6 @@
 %======================================================================
 
-\subsection{Exemples de travail collaboratif}
+\subsection{Introduction}
 
 %======================================================================
 
@@ -47,7 +47,24 @@
 
 %======================================================================
 
-\frame{\frametitle{Introduction}
+\frame{\frametitle{Principes du \emph{workflow}}
+  \begin{itemize}
+  \item
+    pull = fetch + merge pour info (pour aller plus loin ?)
+  \item
+    Récupération des autres contributions avant d'apporter les siennes
+    \begin{itemize}
+    \item
+      on choisit le moment (c'est manuel)
+    \item
+      message d'erreur si le \emph{workflow} n'est pas respecté
+    \end{itemize}
+  \end{itemize}
+}
+
+%======================================================================
+
+\frame{\frametitle{Scénarios de contributions}
   \begin{itemize}
   \item
     Si les modifications de différents contributeurs portent sur des
@@ -67,6 +84,10 @@
 
 %======================================================================
 
+\subsection{Exemples de travail collaboratif}
+
+%======================================================================
+
 \frame{\frametitle{Cas idéal}
   \begin{center}
     \includegraphics[width=9cm]{edit-coll.eps}
@@ -174,3 +195,16 @@
 
 %======================================================================
 
+\subsection{Configuration}
+
+%======================================================================
+
+\frame{\frametitle{SSH ?}
+  \framesubtitle{Du côté de chez Bob...}
+  \mygitpromptplus{bob}{git add README}\\
+  \mygitprompt{bob}{git commit -m "Conflict fixed"}{gitconffix.txt}
+  \mygitprompt{bob}{git push}{gitpushconf.txt}
+}
+
+%======================================================================
+
diff --git a/gitmain.tex b/gitmain.tex
index b1e507e..9c949c7 100644
--- a/gitmain.tex
+++ b/gitmain.tex
@@ -58,10 +58,12 @@
 %======================================================================
 
 \include{intro}
+\section{Les bases de Git}
 \include{basegit}
 \include{maincommands}
-\include{collabowork}
 \include{config}
+\section{Travail collaboratif avec Git}
+\include{collabowork}
 \include{moregit}
 
 % 2 points importants d'évolutions : introduire les hunks et git
diff --git a/maincommands.tex b/maincommands.tex
index bf6c2aa..8804352 100644
--- a/maincommands.tex
+++ b/maincommands.tex
@@ -41,6 +41,15 @@
 
 %======================================================================
 
+\frame{\frametitle{Niveaux de stockage et commandes Git}
+  \framesubtitle{Quelques flux courants}
+  \begin{center}
+    \includegraphics[width=10cm]{princindex.eps}
+  \end{center}
+}
+
+%======================================================================
+
 \frame{\frametitle{\ex{git init}}
   \framesubtitle{\gitcrea}
   \begin{itemize}
@@ -81,14 +90,6 @@
 
 %======================================================================
 
-\frame{\frametitle{Index et commandes Git}
-  \begin{center}
-    \includegraphics[width=10cm]{princindex.eps}
-  \end{center}
-}
-
-%======================================================================
-
 \frame{\frametitle{\ex{git add}}
   \framesubtitle{\gitajout}
   \begin{itemize}
@@ -548,12 +549,12 @@
   \item
     Propage les changements du dépôt local vers le distant
   \item
-    Précision : deux stratégies de mises à jour existent (voir le
-    transparent sur la configuration utilisateur)
+    Précision : plusieurs stratégies de mises à jour existent (voir le
+    transparent sur la configuration utilisateur), dont
     \begin{itemize}
     \item
-      \ex{simple} : seule la branche courante est concernée
-      (conseillé en général)
+      \ex{simple} : seule la branche courante est concernée\\
+      (par défaut, conseillé en général)
     \item
       \ex{matching} : toutes les branches locales sont concernées
       % si elles existent sur le serveur
-- 
GitLab