Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
COURS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ainas ImeneZahoua
COURS
Commits
c8d2e5bc
Commit
c8d2e5bc
authored
1 year ago
by
FILIPPONE Jerome
Browse files
Options
Downloads
Patches
Plain Diff
Delete exercice.txt
parent
8c828c18
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
UE701/SEMESTRE_1_2023-24/EXERCICES/exercice.txt
+0
-115
0 additions, 115 deletions
UE701/SEMESTRE_1_2023-24/EXERCICES/exercice.txt
with
0 additions
and
115 deletions
UE701/SEMESTRE_1_2023-24/EXERCICES/exercice.txt
deleted
100644 → 0
+
0
−
115
View file @
8c828c18
**** 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)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment