Skip to content
Snippets Groups Projects
Commit c8d2e5bc authored by FILIPPONE Jerome's avatar FILIPPONE Jerome
Browse files

Delete exercice.txt

parent 8c828c18
No related branches found
No related tags found
No related merge requests found
**** 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment