From be799d556892294f82df7f498362dafc319fa33d Mon Sep 17 00:00:00 2001 From: FILIPPONE Jerome <jerome@filippone.fr> Date: Fri, 9 Feb 2024 07:01:37 +0000 Subject: [PATCH] Upload New File --- .../EXERCICES/exercice1.txt | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 UE701/SEMESTRE_2_2023-24/EXERCICES/exercice1.txt diff --git a/UE701/SEMESTRE_2_2023-24/EXERCICES/exercice1.txt b/UE701/SEMESTRE_2_2023-24/EXERCICES/exercice1.txt new file mode 100644 index 0000000..457be7c --- /dev/null +++ b/UE701/SEMESTRE_2_2023-24/EXERCICES/exercice1.txt @@ -0,0 +1,33 @@ +// ajout des dépôts distants +git remote add lgb https://github.com/pcottle/learnGitBranching.git +git remote add gg https://github.com/hgarc014/git-game.git +git remote -v + +// récupération des données des projets +git branch --all +git fetch lgb +git fetch gg +git branch --all + +// changement du nom des dépôts +git remote rename lgb lgitb +git remote rename gg gitg +git remote + +// récupération d'une branche distante en local +git checkout Kevin +git log + +// test de la présence de doublons pour la branche main +git remote add lgb https://github.com/pcottle/learnGitBranching.git +git checkout lgb/main + +// lister les commit où se positionnent les HEAD de la branche +git ls-remote lgb + +// suppression de dépôt +git remote rm gitg + + + + -- GitLab