\begin{frame} \frametitle{Associer les dépôts distants} \framesubtitle{Ajouter un dépôt distant} \commande{git remote add ://[@][:port]/} 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=/} \end{itemize} Pour une branche distante inexistante : \begin{itemize} \item \commande{git push --set-upstream } \end{itemize} \end{frame}