Skip to content
Snippets Groups Projects
Commit a2977a92 authored by NIDABRAHIM Youssef's avatar NIDABRAHIM Youssef
Browse files

Q4.4

parent 5baabf97
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge ...@@ -18,6 +18,7 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge
$ git init $ git init
Initialized empty Git repository in C:/TP1/.git/ Initialized empty Git repository in C:/TP1/.git/
``` ```
0. _Par la suite pensez à commiter votre compte rendu apres chaques étapes dont l'enoncé est terminé par `*`, pour les messages de commit vous pouvez utiliser les numéros des questions (Ex Q1.2 ici)_ 0. _Par la suite pensez à commiter votre compte rendu apres chaques étapes dont l'enoncé est terminé par `*`, pour les messages de commit vous pouvez utiliser les numéros des questions (Ex Q1.2 ici)_
0. Ajouter le compte rendu dans le repo `*` 0. Ajouter le compte rendu dans le repo `*`
...@@ -380,227 +381,227 @@ $ git commit -m "Q2.3" ...@@ -380,227 +381,227 @@ $ git commit -m "Q2.3"
0. Créez une branche pour _développer_ la réponse de ce point (nommez là `mybranch-2.4` par exemple) 0. Créez une branche pour _développer_ la réponse de ce point (nommez là `mybranch-2.4` par exemple)
``` ```
$ git branch reda_youssef-2.4 $ git branch reda_youssef-2.4
``` ```
0. Afficher un historique sous forme de graph (`a dog`) de votre repo 0. Afficher un historique sous forme de graph (`a dog`) de votre repo
``` ```
$ git log --all --graph --decorate --oneline $ git log --all --graph --decorate --oneline
*71592a8 (HEAD -> reda_youssef-2.4, reda_youssef) Q2.3 *71592a8 (HEAD -> reda_youssef-2.4, reda_youssef) Q2.3
*03c3017 Q2.2 *03c3017 Q2.2
*717b390 (master) Q1.15 *717b390 (master) Q1.15
*715a4ee Q1.13 *715a4ee Q1.13
*51a5add Q1.10 *51a5add Q1.10
*a38f03f Q1.9 *a38f03f Q1.9
*abfd2d9 Q1.7 *abfd2d9 Q1.7
*3ec344e Q1.3 *3ec344e Q1.3
``` ```
0. Pourquoi les 2 branches pointent elles sur la même révision ?`*` 0. Pourquoi les 2 branches pointent elles sur la même révision ?`*`
> On remarque que les 2 branches `reda_youssef` et `reda_youssef-2.4` pointent sur la même révision puisque il n'y pas de `commit` > On remarque que les 2 branches `reda_youssef` et `reda_youssef-2.4` pointent sur la même révision puisque il n'y pas de `commit`
``` ```
$ git add . $ git add .
$ git commit -m "Q2.4.2" $ git commit -m "Q2.4.2"
[reda_youssef-2.4 12bae9c] Q2.4.2 [reda_youssef-2.4 12bae9c] Q2.4.2
1 file changed, 186 insertions(+), 14 deletions(-) 1 file changed, 186 insertions(+), 14 deletions(-)
``` ```
0. Afficher à nouveau l'historique pour montrer les modifications suite au précédent commit `*` 0. Afficher à nouveau l'historique pour montrer les modifications suite au précédent commit `*`
``` ```
$ git log --graph --abbrev-commit --decorate $ git log --graph --abbrev-commit --decorate
*commit 12bae9c (HEAD -> reda_youssef-2.4) *commit 12bae9c (HEAD -> reda_youssef-2.4)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 23:00:27 2018 +0100 |Date: Mon Feb 12 23:00:27 2018 +0100
| |
| Q2.4.2 | Q2.4.2
| |
*commit 71592a8 (reda_youssef) *commit 71592a8 (reda_youssef)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:21:41 2018 +0100 |Date: Mon Feb 12 22:21:41 2018 +0100
| |
| Q2.3 | Q2.3
| |
*commit 03c3017 *commit 03c3017
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:19:47 2018 +0100 |Date: Mon Feb 12 22:19:47 2018 +0100
| |
| Q2.2 | Q2.2
| |
*commit 717b390 (master) *commit 717b390 (master)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:14:02 2018 +0100 |Date: Mon Feb 12 22:14:02 2018 +0100
| |
| Q1.15 | Q1.15
:...skipping... :...skipping...
*commit 12bae9c (HEAD -> reda_youssef-2.4) *commit 12bae9c (HEAD -> reda_youssef-2.4)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 23:00:27 2018 +0100 |Date: Mon Feb 12 23:00:27 2018 +0100
| |
| Q2.4.2 | Q2.4.2
| |
*commit 71592a8 (reda_youssef) *commit 71592a8 (reda_youssef)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:21:41 2018 +0100 |Date: Mon Feb 12 22:21:41 2018 +0100
| |
| Q2.3 | Q2.3
| |
*commit 03c3017 *commit 03c3017
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:19:47 2018 +0100 |Date: Mon Feb 12 22:19:47 2018 +0100
| |
| Q2.2 | Q2.2
| |
*commit 717b390 (master) *commit 717b390 (master)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:14:02 2018 +0100 |Date: Mon Feb 12 22:14:02 2018 +0100
| |
| Q1.15 | Q1.15
| |
*commit 715a4ee *commit 715a4ee
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:05:17 2018 +0100 |Date: Mon Feb 12 22:05:17 2018 +0100
| |
| Q1.13 | Q1.13
| |
*commit 51a5add *commit 51a5add
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 21:53:17 2018 +0100 |Date: Mon Feb 12 21:53:17 2018 +0100
| |
| Q1.10 | Q1.10
| |
*commit a38f03f *commit a38f03f
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 21:40:41 2018 +0100 |Date: Mon Feb 12 21:40:41 2018 +0100
| |
| Q1.9 | Q1.9
| |
*commit abfd2d9 *commit abfd2d9
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 21:15:48 2018 +0100 |Date: Mon Feb 12 21:15:48 2018 +0100
| |
| Q1.7 | Q1.7
| |
*commit 3ec344e *commit 3ec344e
Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
Date: Mon Feb 12 21:02:43 2018 +0100 Date: Mon Feb 12 21:02:43 2018 +0100
Q1.3 Q1.3
``` ```
> On commite cette étape Q2.4.3 > On commite cette étape Q2.4.3
``` ```
$ git add . $ git add .
$ git commit -m "Q2.4.3" $ git commit -m "Q2.4.3"
[reda_youssef-2.4 3dd3708] Q2.4.3 [reda_youssef-2.4 3dd3708] Q2.4.3
1 file changed, 10 insertions(+), 11 deletions(-) 1 file changed, 10 insertions(+), 11 deletions(-)
``` ```
0. Pourquoi les 2 branches pointent elles sur la même révision ?`*` 0. Pourquoi les 2 branches pointent elles sur la même révision ?`*`
> Car il n'y a pas de changement > Car il n'y a pas de changement
``` ```
$ git add . $ git add .
$ git commit -m "Q2.4.4" $ git commit -m "Q2.4.4"
[reda_youssef-2.4 d72c9c1] Q2.4.4 [reda_youssef-2.4 d72c9c1] Q2.4.4
1 file changed, 3 insertions(+), 3 deletions(-) 1 file changed, 3 insertions(+), 3 deletions(-)
``` ```
0. Afficher à nouveau l'historique pour montrer les modifications suite au précédent commit `*` 0. Afficher à nouveau l'historique pour montrer les modifications suite au précédent commit `*`
``` ```
$ git log --graph --abbrev-commit --decorate $ git log --graph --abbrev-commit --decorate
*commit d72c9c1 (HEAD -> reda_youssef-2.4) *commit d72c9c1 (HEAD -> reda_youssef-2.4)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 23:04:18 2018 +0100 |Date: Mon Feb 12 23:04:18 2018 +0100
| |
| Q2.4.4 | Q2.4.4
| |
*commit 3dd3708 *commit 3dd3708
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 23:03:02 2018 +0100 |Date: Mon Feb 12 23:03:02 2018 +0100
| |
| Q2.4.3 | Q2.4.3
| |
*commit 12bae9c *commit 12bae9c
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 23:00:27 2018 +0100 |Date: Mon Feb 12 23:00:27 2018 +0100
| |
| Q2.4.2 | Q2.4.2
| |
*commit 71592a8 (reda_youssef) *commit 71592a8 (reda_youssef)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:21:41 2018 +0100 |Date: Mon Feb 12 22:21:41 2018 +0100
| |
| Q2.3 | Q2.3
:...skipping... :...skipping...
*commit d72c9c1 (HEAD -> reda_youssef-2.4) *commit d72c9c1 (HEAD -> reda_youssef-2.4)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 23:04:18 2018 +0100 |Date: Mon Feb 12 23:04:18 2018 +0100
| |
| Q2.4.4 | Q2.4.4
| |
*commit 3dd3708 *commit 3dd3708
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 23:03:02 2018 +0100 |Date: Mon Feb 12 23:03:02 2018 +0100
| |
| Q2.4.3 | Q2.4.3
| |
*commit 12bae9c *commit 12bae9c
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 23:00:27 2018 +0100 |Date: Mon Feb 12 23:00:27 2018 +0100
| |
| Q2.4.2 | Q2.4.2
| |
*commit 71592a8 (reda_youssef) *commit 71592a8 (reda_youssef)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:21:41 2018 +0100 |Date: Mon Feb 12 22:21:41 2018 +0100
| |
| Q2.3 | Q2.3
| |
*commit 03c3017 *commit 03c3017
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:19:47 2018 +0100 |Date: Mon Feb 12 22:19:47 2018 +0100
| |
| Q2.2 | Q2.2
| |
*commit 717b390 (master) *commit 717b390 (master)
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:14:02 2018 +0100 |Date: Mon Feb 12 22:14:02 2018 +0100
| |
| Q1.15 | Q1.15
| |
*commit 715a4ee *commit 715a4ee
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 22:05:17 2018 +0100 |Date: Mon Feb 12 22:05:17 2018 +0100
| |
| Q1.13 | Q1.13
| |
*commit 51a5add *commit 51a5add
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 21:53:17 2018 +0100 |Date: Mon Feb 12 21:53:17 2018 +0100
| |
| Q1.10 | Q1.10
| |
*commit a38f03f *commit a38f03f
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 21:40:41 2018 +0100 |Date: Mon Feb 12 21:40:41 2018 +0100
| |
| Q1.9 | Q1.9
| |
*commit abfd2d9 *commit abfd2d9
|Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> |Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
|Date: Mon Feb 12 21:15:48 2018 +0100 |Date: Mon Feb 12 21:15:48 2018 +0100
| |
| Q1.7 | Q1.7
| |
*commit 3ec344e *commit 3ec344e
Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma> Author: NIDABRAHIM Youssef <youssef.nidabrahim@um5s.net.ma>
Date: Mon Feb 12 21:02:43 2018 +0100 Date: Mon Feb 12 21:02:43 2018 +0100
Q1.3 Q1.3
(END) (END)
``` ```
> On commite cette étape Q2.4.5 > On commite cette étape Q2.4.5
``` ```
$ git add . $ git add .
$ git commit -m "Q2.4.5" $ git commit -m "Q2.4.5"
[reda_youssef-2.4 f94d5dd] Q2.4.5 [reda_youssef-2.4 f94d5dd] Q2.4.5
1 file changed, 41 insertions(+), 10 deletions(-) 1 file changed, 41 insertions(+), 10 deletions(-)
``` ```
0. Revenir la brache `mybranch` 0. Revenir la brache `mybranch`
``` ```
...@@ -693,38 +694,38 @@ $ git commit -m "Q2.11" ...@@ -693,38 +694,38 @@ $ git commit -m "Q2.11"
##### 3. Merge ##### 3. Merge
0. Merge depuis head 0. Merge depuis head
0. switcher sur une nouvelle branche `mybranch-3.1` 0. switcher sur une nouvelle branche `mybranch-3.1`
``` ```
$ git checkout -b reda_youssef-3.1 $ git checkout -b reda_youssef-3.1
Switched to a new branch 'reda_youssef-3.1' Switched to a new branch 'reda_youssef-3.1'
``` ```
0. ajout un nouveau fichier nommé easy_merge avec la date et l'heure actuelle `*` 0. ajout un nouveau fichier nommé easy_merge avec la date et l'heure actuelle `*`
``` ```
$ touch easy_merge $ touch easy_merge
$ date > easy_merge $ date > easy_merge
``` ```
> On commite cette étape Q3.1.2 > On commite cette étape Q3.1.2
``` ```
$ git add . $ git add .
$ git commit -m "Q3.1.2" $ git commit -m "Q3.1.2"
[reda_youssef-3.1 3288cda] Q3.1.2 [reda_youssef-3.1 3288cda] Q3.1.2
2 files changed, 9 insertions(+), 3 deletions(-) 2 files changed, 9 insertions(+), 3 deletions(-)
create mode 100644 easy_merge create mode 100644 easy_merge
``` ```
0. merger la branche `mybranch-3.1` sur `mybranch` 0. merger la branche `mybranch-3.1` sur `mybranch`
``` ```
$ git checkout reda_youssef $ git checkout reda_youssef
Switched to branch 'reda_youssef' Switched to branch 'reda_youssef'
``` ```
``` ```
$ git merge reda_youssef-3.1 $ git merge reda_youssef-3.1
Updating f258f21..4a165c0 Updating f258f21..4a165c0
Fast-forward Fast-forward
REDA_YOUSSEF.md | 21 +++++++++++++++------ REDA_YOUSSEF.md | 21 +++++++++++++++------
easy_merge | 1 + easy_merge | 1 +
2 files changed, 16 insertions(+), 6 deletions(-) 2 files changed, 16 insertions(+), 6 deletions(-)
``` ```
0. Afficher le status 0. Afficher le status
``` ```
...@@ -781,106 +782,107 @@ $ git commit -m "Q3.4" ...@@ -781,106 +782,107 @@ $ git commit -m "Q3.4"
0. Merge avec modifications 0. Merge avec modifications
0. Mergez les modifications de la branche `mybranch-2.4` sur `mybranch` (`*echap* :wq *enter*` pour sauvegarder le message de commit et quitter)`*` 0. Mergez les modifications de la branche `mybranch-2.4` sur `mybranch` (`*echap* :wq *enter*` pour sauvegarder le message de commit et quitter)`*`
``` ```
$ git merge reda_youssef-2.4 $ git merge reda_youssef-2.4
Auto-merging REDA_YOUSSEF.md Auto-merging REDA_YOUSSEF.md
Merge made by the 'recursive' strategy. Merge made by the 'recursive' strategy.
REDA_YOUSSEF.md | 236 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- REDA_YOUSSEF.md | 236 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 219 insertions(+), 17 deletions(-) 1 file changed, 219 insertions(+), 17 deletions(-)
``` ```
> On commite cette étape Q3.5.1 > On commite cette étape Q3.5.1
``` ```
$ git add . $ git add .
$ git commit -m "Q3.5.1" $ git commit -m "Q3.5.1"
[reda_youssef 04680c8] Q3.5.1 [reda_youssef 04680c8] Q3.5.1
1 file changed, 8 insertions(+), 2 deletions(-) 1 file changed, 8 insertions(+), 2 deletions(-)
``` ```
0. Affichez un historique sous forme de graph (`a dog`) de votre repo `*` 0. Affichez un historique sous forme de graph (`a dog`) de votre repo `*`
``` ```
$ git log --all --graph --decorate --oneline $ git log --all --graph --decorate --oneline
*04680c8 (HEAD -> reda_youssef) Q3.5.1 *04680c8 (HEAD -> reda_youssef) Q3.5.1
*563d694 Merge branch 'reda_youssef-2.4' into reda_youssef *563d694 Merge branch 'reda_youssef-2.4' into reda_youssef
|\ |\
| *02a31d5 (reda_youssef-2.4) Q2.4.5 | *02a31d5 (reda_youssef-2.4) Q2.4.5
| *d72c9c1 Q2.4.4 | *d72c9c1 Q2.4.4
| *3dd3708 Q2.4.3 | *3dd3708 Q2.4.3
| *12bae9c Q2.4.2 | *12bae9c Q2.4.2
.* |cbc5756 Q3.4 .* |cbc5756 Q3.4
.* |b73a302 Q3.3 .* |b73a302 Q3.3
.* |4a165c0 (reda_youssef-3.1) Q3.1.2 .* |4a165c0 (reda_youssef-3.1) Q3.1.2
.* |f258f21 Q2.11 .* |f258f21 Q2.11
.* |ca0e5da Q2.10 .* |ca0e5da Q2.10
.* |f50a0e6 Q2.6 .* |f50a0e6 Q2.6
|/ |/
*71592a8 Q2.3 *71592a8 Q2.3
*03c3017 Q2.2 *03c3017 Q2.2
| *b2acb20 (master) Q2.9 | *b2acb20 (master) Q2.9
|/ |/
*717b390 Q1.15 *717b390 Q1.15
*715a4ee Q1.13 *715a4ee Q1.13
*51a5add Q1.10 *51a5add Q1.10
*a38f03f Q1.9 *a38f03f Q1.9
*abfd2d9 Q1.7 *abfd2d9 Q1.7
*3ec344e Q1.3 *3ec344e Q1.3
``` ```
> On commite cette étape Q3.5.2 > On commite cette étape Q3.5.2
``` ```
$ git add . $ git add .
$ git commit -m "Q3.5.2" $ git commit -m "Q3.5.2"
[reda_youssef 1c24ed3] Q3.5.2 [reda_youssef 1c24ed3] Q3.5.2
1 file changed, 35 insertions(+), 4 deletions(-) 1 file changed, 35 insertions(+), 4 deletions(-)
``` ```
0. Merge avec conflit 0. Merge avec conflit
0. Céer une nouvelle branche `mybranch-3.6` 0. Céer une nouvelle branche `mybranch-3.6`
``` ```
$ git branch reda_youssef-3.6 $ git branch reda_youssef-3.6
Created a new branch 'reda_youssef-3.6' Created a new branch 'reda_youssef-3.6'
M REDA_YOUSSEF.md M REDA_YOUSSEF.md
``` ```
0. Notez dans le CR la date et l'heure actuelle (avec la commande `date` par exemple) `*` 0. Notez dans le CR la date et l'heure actuelle (avec la commande `date` par exemple) `*`
``` ```
$ date >> REDA_YOUSSEF.md $ date >> REDA_YOUSSEF.md
``` ```
> On commite cette étape Q3.6.2 > On commite cette étape Q3.6.2
``` ```
$ git add . $ git add .
$ git commit -m "Q3.6.2" $ git commit -m "Q3.6.2"
[reda_youssef 493cb2e] Q3.6.2 [reda_youssef 493cb2e] Q3.6.2
1 file changed, 22 insertions(+), 6 deletions(-) 1 file changed, 22 insertions(+), 6 deletions(-)
``` ```
0. Switchez sur la nouvelle branche et modifiez la réponse précendante dans le CR avec le `*` 0. Switchez sur la nouvelle branche et modifiez la réponse précendante dans le CR avec le `*`
``` ```
$ git checkout reda_youssef_3.6 $ git checkout reda_youssef_3.6
$ date >> REDA_YOUSSEF.md $ date >> REDA_YOUSSEF.md
``` ```
> On commite cette étape Q3.6.3 > On commite cette étape Q3.6.3
``` ```
$ git add . $ git add .
$ git commit -m "Q3.6.3" $ git commit -m "Q3.6.3"
[reda_youssef-3.6 66764c5] Q3.6.3 [reda_youssef-3.6 66764c5] Q3.6.3
1 file changed, 6 insertions(+), 2 deletions(-) 1 file changed, 6 insertions(+), 2 deletions(-)
``` ```
0. Réalisez le merge de la brache `mybranch-3.6` sur `mybranch`. Le prompt change, pourquoi ? Gerer le conflit et commiter. 0. Réalisez le merge de la brache `mybranch-3.6` sur `mybranch`. Le prompt change, pourquoi ? Gerer le conflit et commiter.
```
$ git checkout reda_youssef ```
Switched to branch 'reda_youssef' $ git checkout reda_youssef
M REDA_YOUSSEF.md Switched to branch 'reda_youssef'
$ git merge reda_youssef-3.6 M REDA_YOUSSEF.md
Auto-merging REDA_YOUSSEF.md $ git merge reda_youssef-3.6
CONFLICT (content): Merge conflict in REDA_YOUSSEF.md Auto-merging REDA_YOUSSEF.md
Automatic merge failed; fix conflicts and then commit the result. CONFLICT (content): Merge conflict in REDA_YOUSSEF.md
``` Automatic merge failed; fix conflicts and then commit the result.
> **NOTE:** Le prompt change puisque les deux branches ont modifié la même chose ```
``` > **NOTE:** Le prompt change puisque les deux branches ont modifié la même chose
$ git add . ```
$ git commit -m "Q3.6.4" $ git add .
[reda_youssef eef8621] Q3.6.4 $ git commit -m "Q3.6.4"
``` [reda_youssef eef8621] Q3.6.4
```
0. Supprimer les branches de feature et afficher toutes les branches restantes, affichez un historique sous forme de graph (`a dog`) de votre repo `*` 0. Supprimer les branches de feature et afficher toutes les branches restantes, affichez un historique sous forme de graph (`a dog`) de votre repo `*`
``` ```
...@@ -981,13 +983,29 @@ $ git commit -m "Q4.2" ...@@ -981,13 +983,29 @@ $ git commit -m "Q4.2"
0. Lister les branches distantes 0. Lister les branches distantes
``` ```
$ git remote show https://mobenchraa@gitlab.isima.fr/mazenovi/2017-F2-Forge.git $ git remote add origin https://gitlab.isima.fr/mazenovi/2017-F2-Forge.git
``` ```
0. Pousser votre branche de votre repo local sur le repos distant `*` 0. Pousser votre branche de votre repo local sur le repos distant `*`
``` ```
$ git push origin reda_youssef
Counting objects: 81, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (75/75), done.
Writing objects: 100% (81/81), 16.62 KiB | 0 bytes/s, done.
Total 81 (delta 36), reused 0 (delta 0)
remote:
remote: View merge request for reda_youssef:
remote: https://gitlab.isima.fr/mazenovi/2017-F2-Forge/merge_requests/5
remote:
To gitlab.isima.fr:mazenovi/2017-F2-Forge.git
* [new branch] reda_youssef -> reda_youssef
```
```
$ git add . $ git add .
$ git commit -m "Q4.4" $ git commit -m "Q4.4"
[reda_youssef 44c6616] Q4.4
1 file changed, 1 insertion(+), 1 deletion(-)
$ git push origin reda_youssef $ git push origin reda_youssef
``` ```
0. En consultant votre branche sous gitlab, vous devriez constaté que la date de modification du fichier start est plus acienne que celle de votre compte rendu, pourquoi alors que le push de toute votre branche est faite en une seule fois ? 0. En consultant votre branche sous gitlab, vous devriez constaté que la date de modification du fichier start est plus acienne que celle de votre compte rendu, pourquoi alors que le push de toute votre branche est faite en une seule fois ?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment