\begin{frame} \frametitle{Associer les dépôts distants} \framesubtitle{Ajouter un dépôt distant} \commande{git remote add <nom> <protocole>://[<utilisateur>@]<adresse>[:port]/<chemin>} Exemples : \begin{itemize} \item \commande{git remote add formation ssh://gogs@localhost:3000/formation/exercices.git} \item \commande{git remote add formation http://gogs@localhost:3000/formation/exercices.git} \end{itemize} \begin{exampleblock}{Vérification} Les dépôts distants configurés peuvent être listés avec : \begin{itemize} \item \commande{git remote} pour la version sobre ou \item \commande{git remote -v} pour plus de détails. \end{itemize} \end{exampleblock} \end{frame} \begin{frame} \frametitle{Associer les dépôts distants} \framesubtitle{Observer une branche distante} Pour une branche distante existante : \begin{itemize} \item \commande{git branch --set-upstream-to=<nom\_dépôt\_distant>/<branche\_distante>} \end{itemize} Pour une branche distante inexistante : \begin{itemize} \item \commande{git push --set-upstream <nom\_dépôt\_distant> <branche\_locale>} \end{itemize} \end{frame}