Compare commits
2 Commits
merge_conf
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e94d51d40f | ||
| 243c15c4aa |
1
.git_alias
Normal file
1
.git_alias
Normal file
@@ -0,0 +1 @@
|
|||||||
|
alias gitl="git log --graph --all --decorate"
|
||||||
1
.kaamelott.merge_conflits.md5
Normal file
1
.kaamelott.merge_conflits.md5
Normal file
@@ -0,0 +1 @@
|
|||||||
|
519f380bf192cf368613021d0bc67569 *kaamelott
|
||||||
1
.kaamelott.merge_simple.md5
Normal file
1
.kaamelott.merge_simple.md5
Normal file
@@ -0,0 +1 @@
|
|||||||
|
912d0a90cf4020a9db50abad6d251d38 *kaamelott
|
||||||
1
.kaamelott.rebase_conflits.md5
Normal file
1
.kaamelott.rebase_conflits.md5
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2d9e75908e6e47214aa66e73fd8756ca *kaamelott
|
||||||
1
.kaamelott.rebase_simple.md5
Normal file
1
.kaamelott.rebase_simple.md5
Normal file
@@ -0,0 +1 @@
|
|||||||
|
4703d7837d4913741e6221e1eff0d695 *kaamelott
|
||||||
15
INSTRUCTIONS
Normal file
15
INSTRUCTIONS
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Instructions :
|
||||||
|
|
||||||
|
Le but est de pratiquer les opérations de merge et de rebase en réglant les conflits.
|
||||||
|
|
||||||
|
Votre mission (et vous l'acceptez) :
|
||||||
|
|
||||||
|
-1 - appliquer le script init.sh pour tirer toutes les branches
|
||||||
|
0 - étudier l'arbre des commits pour voir ce qui a été fait à quel endroit
|
||||||
|
1 - merger la branche merge_simple dans master
|
||||||
|
2 - rebase la branche rebase_simple sur master et fusionner
|
||||||
|
3 - merger la branche merge_conflits dans master et régler les conflits
|
||||||
|
4 - rebase la branche rebase_conflits sur master, régler les conflits et fusionner
|
||||||
|
|
||||||
|
Lisez les messages de git, il vous aide !!
|
||||||
|
|
||||||
12
LICENSE
Normal file
12
LICENSE
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
24 octobre 2018
|
||||||
|
Rémy Huet (remy.huet@etu.utc.fr), Thibaud Duhautbout (thibaud@duhautbout.ovh)
|
||||||
|
Association Picasoft (picasoft@assos.utc.fr)
|
||||||
|
|
||||||
|
La présentation et tous les fichiers qui composent ce dépôt sont sous licence
|
||||||
|
Creative Commons 4.0 Attribution - Partage dans les Mêmes Conditions 4.0
|
||||||
|
International (CC BY-SA 4.0).
|
||||||
|
Vous êtes libre de partager (copier, distribuer et communiquer le matériel par
|
||||||
|
tous moyens et sous tous formats) et d'adapter (remixer, transformer et créer à
|
||||||
|
partir du matériel) ces fichiers pour toute utilisation, y compris commerciale.
|
||||||
|
Visitez https://creativecommons.org/licenses/by-sa/4.0/deed.fr pour plus
|
||||||
|
d'informations.
|
||||||
36
check.sh
Executable file
36
check.sh
Executable file
@@ -0,0 +1,36 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
option="$@"
|
||||||
|
|
||||||
|
case $option in
|
||||||
|
1)
|
||||||
|
filecheck=".kaamelott.merge_simple.md5"
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
filecheck=".kaamelott.rebase_simple.md5"
|
||||||
|
;;
|
||||||
|
3)
|
||||||
|
filecheck=".kaamelott.merge_conflits.md5"
|
||||||
|
;;
|
||||||
|
4)
|
||||||
|
filecheck=".kaamelott.rebase_conflits.md5"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Option non prévue !"
|
||||||
|
echo "Utilisation : ./check.sh <numéro>"
|
||||||
|
echo "1 : vérification après le merge simple"
|
||||||
|
echo "2 : vérification après le rebase simple"
|
||||||
|
echo "3 : vérification après le merge avec conflits"
|
||||||
|
echo "4 : vérification après le rebase avec conflits"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
md5sum --check $filecheck
|
||||||
|
|
||||||
|
if [ $? -eq 0 ]
|
||||||
|
then
|
||||||
|
echo "C'est bon, on passe à la suite !"
|
||||||
|
else
|
||||||
|
echo "C'est pas encore ça, vérifiez bien les espaces partout si vous êtes sûrs de vous !"
|
||||||
|
fi
|
||||||
2
init.sh
Normal file → Executable file
2
init.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
|||||||
#/bin/bash
|
#!/bin/sh
|
||||||
git checkout merge_simple
|
git checkout merge_simple
|
||||||
git checkout merge_conflit
|
git checkout merge_conflit
|
||||||
git checkout rebase_simple
|
git checkout rebase_simple
|
||||||
|
|||||||
14
reset_hard.sh
Executable file
14
reset_hard.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
git remote add origin https://gitlab.utc.fr/picasoft/formations/A18/tp-v2
|
||||||
|
git fetch
|
||||||
|
git checkout master
|
||||||
|
git reset --hard origin/master
|
||||||
|
git checkout rebase_simple
|
||||||
|
git reset --hard origin/rebase_simple
|
||||||
|
git checkout rebase_conflit
|
||||||
|
git reset --hard origin/rebase_conflit
|
||||||
|
git checkout merge_conflit
|
||||||
|
git reset --hard origin/merge_conflit
|
||||||
|
git checkout merge_simple
|
||||||
|
git reset --hard origin/merge_simple
|
||||||
|
git remote remove origin
|
||||||
|
git checkout master
|
||||||
2
reset_merge.sh
Executable file
2
reset_merge.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
git checkout --quiet master
|
||||||
|
git reset --hard HEAD^
|
||||||
7
reset_rebase.sh
Executable file
7
reset_rebase.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
git remote add origin https://gitlab.utc.fr/picasoft/formations/A18/tp-v2
|
||||||
|
git fetch
|
||||||
|
git checkout rebase_simple
|
||||||
|
git reset --hard origin/rebase_simple
|
||||||
|
git checkout master
|
||||||
|
git reset --hard HEAD^
|
||||||
|
git remote remove origin
|
||||||
7
reset_rebase_conflits.sh
Executable file
7
reset_rebase_conflits.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
git remote add origin https://gitlab.utc.fr/picasoft/formations/A18/tp-v2
|
||||||
|
git fetch
|
||||||
|
git checkout --quiet master
|
||||||
|
git reset --hard HEAD^
|
||||||
|
git checkout --quiet rebase_conflit
|
||||||
|
git reset --hard origin/rebase_conflit
|
||||||
|
git remote remove origin
|
||||||
Reference in New Issue
Block a user