From c8d2e5bc6654193e45f922efa8bb70d8ce3fdb56 Mon Sep 17 00:00:00 2001 From: FILIPPONE Jerome <jerome@filippone.fr> Date: Thu, 5 Oct 2023 04:56:45 +0000 Subject: [PATCH] Delete exercice.txt --- .../SEMESTRE_1_2023-24/EXERCICES/exercice.txt | 115 ------------------ 1 file changed, 115 deletions(-) delete mode 100644 UE701/SEMESTRE_1_2023-24/EXERCICES/exercice.txt diff --git a/UE701/SEMESTRE_1_2023-24/EXERCICES/exercice.txt b/UE701/SEMESTRE_1_2023-24/EXERCICES/exercice.txt deleted file mode 100644 index 2d85bae..0000000 --- a/UE701/SEMESTRE_1_2023-24/EXERCICES/exercice.txt +++ /dev/null @@ -1,115 +0,0 @@ -**** PARTIE A **** - - sur le serveur GITLAB : - - créer un projet nommé "projet" - - créer le fichier changelog.txt dans la branche principale MAIN - - créer 2 branches à partir de la branche principale MAIN : DEV et TEST - - créer 2 branches à partir de la branche principale DEV : DEV1 et DEV2 - - créer puis supprimer une branche DEV3 - -**** PARTIE B **** - //sur sa machine : - - mkdir TP_GIT - cd TP_GIT - - mkdir DEV1@paris - mkdir DEV2@nancy - mkdir DEV@metz - mkdir TEST@strasbourg - mkdir FONCTION1 - récupérer sf1a.c et sf1b.c du gitlab - - /configuration de GIT - git config --global user.email "votre_email" - git config --global user.name "votre_pseudo" - more ~/.gitconfig - - git config --global credential.helper "cache --timeout=7200" - -**** PARTIE C **** - - cd DEV1@paris - git clone https://gitlab.univ-lorraine.fr/filippon1/projet.git - cd projet - - git branch -a - git checkout DEV1 - git push -u ==> vérifier le message EVERYTHING UP-TO-DATE - gcc -o sf1a.o -c sf1a.c - gcc -o sf1a sf1a.o - ./sf1a - git add sf1a* - git commit -m "ajout de sf1a" - -**** PARTIE D **** - idem avec DEV2 pour le composant logiciel sf1b - -**** PARTIE E **** - - / DEV va fusionner le travail de DEV1 et DEV2 en 3 étapes - cd DEV@metz - git clone https://gitlab.univ-lorraine.fr/filippon1/projet.git - cd projet - ls - git branch -a - git checkout DEV - - // étape 1 : DEV récupère le travail de DEV1 - git merge DEV1 - rm sf1a - rm sf1a.o - ls - gcc -o sf1a-build.o -c sf1a.c - gcc -o sf1a-build sf1a-build.o - ./sf1a-build - - // étape 2 : DEV récupère le travail de DEV2 - git merge DEV2 - rm sf1b - rm sf1b.o - ls - gcc -o sf1b-build.o -c sf1b.c - gcc -o sf1b-build sf1b-build.o - ./sf1b-build - - // étape 3 : DEV synchronise les dépots - git add sf1a-build sf1b-build - git push - // on vérifie sur le dépot distant l'ajout des 2 fichiers - -**** PARTIE F **** - - cd TEST@strasbourg - git clone https://gitlab.univ-lorraine.fr/filippon1/projet.git - cd projet - ls - git branch -a - git checkout TEST - - // on récupère le travail de DEV - git merge DEV - ./sf1a-build - ./sf1b-build - sur gitlab, ajouter un fichier de validation.txt et le récupérer avec git pull - -**** PARTIE G **** - //pour les rôles DEV et TEST : ajouter une note sur le changelog.txt et pousser avec git push - - - - BONUS : - git remote -v - git remote add origin https://gitlab.univ-lorraine.fr/USER/PROJET.git - git remote rm origin - git remote add origin https://gitlab.univ-lorraine.fr/USER/PROJET.git - git remote -v - git push origin - git push --set-upstream origin main - - - - - tester votre clé SSH : git clone ssh://git@gitlab.univ-lorraine.fr/USER/RPROJET.git - - tester avec un jeton HTTPS - - laisser les autres membres consulter votre projet (permissions) - -- GitLab