From 9c299e9179abd378ff649005c60b2281c6faf0b2 Mon Sep 17 00:00:00 2001
From: Philippe Dosch <Philippe.Dosch@loria.fr>
Date: Mon, 15 Nov 2021 17:19:16 +0100
Subject: [PATCH] =?UTF-8?q?R=C3=A9cup=C3=A9ration=20branche=20distante?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 advancedgit.tex | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/advancedgit.tex b/advancedgit.tex
index a89e8d8..4a2b6a8 100644
--- a/advancedgit.tex
+++ b/advancedgit.tex
@@ -335,6 +335,23 @@
 %======================================================================
 
 
+\frame{\frametitle{Récupérer une nouvelle branche distante}
+  \begin{itemize}
+  \item
+    Particulièrement intéressant dans le cadre de pull/merge request
+  \item
+    Scénario : un contributeur a créé une nouvelle branche, qu'on
+    souhaite récupérer en local
+  \item
+    La syntaxe générale est (pour harmoniser les noms locaux/distants)\\
+    \ex{git checkout -b nouvbranche origin/nouvbranche}
+    ou \ex{git switch -C nouvbranche origin/nouvbranche} ?
+  \end{itemize}
+}
+
+%======================================================================
+
+
 \frame{\frametitle{Pousser une branche vers une autre}
   \begin{itemize}
   \item
-- 
GitLab