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 0000000000000000000000000000000000000000..457be7c5393c2e1f9e45f4a4b2204289223bc5fb --- /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 + + + +