Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2017-F2-Forge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Youssef NIDABRAHIM
2017-F2-Forge
Commits
3bcd315e
Commit
3bcd315e
authored
7 years ago
by
Clement SERRE
Browse files
Options
Downloads
Plain Diff
merge 3.5.iv
parents
d921e5e4
0b24ace6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cdpw_tp1_SERRE_PRUNIER.md
+36
-0
36 additions, 0 deletions
cdpw_tp1_SERRE_PRUNIER.md
easy_merge
+4
-0
4 additions, 0 deletions
easy_merge
with
40 additions
and
0 deletions
cdpw_tp1_SERRE_PRUNIER.md
+
36
−
0
View file @
3bcd315e
...
@@ -406,9 +406,45 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge
...
@@ -406,9 +406,45 @@ https://gitlab.isima.fr/mazenovi/2017-F2-Forge
```
```
0. Merge avec conflit
0. Merge avec conflit
1. Céer une nouvelle branche `mybranch-3.6`
1. Céer une nouvelle branche `mybranch-3.6`
```
git
clserre1@A210PC12:/h/Documents/cdpw $ git checkout SERRE_PRUNIER-3.6
Switched to a new branch 'SERRE_PRUNIER-3.6'
```
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) `*`
```
git
clserre1@A210PC12:/h/Documents/cdpw $ date > easy_merge
clserre1@A210PC12:/h/Documents/cdpw $ git commit -am"3.5.ii"
warning: LF will be replaced by CRLF in easy_merge.
The file will have its original line endings in your working directory.
[SERRE_PRUNIER-3.6 7bababf] 3.5.ii
Date: Mon Jan 29 18:55:53 2018 +0100
2 files changed, 13 insertions(+), 5 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
clserre1@A210PC12:/h/Documents/cdpw $ git checkout SERRE_PRUNIER
Switched to branch 'SERRE_PRUNIER'
Your branch is ahead of 'master/SERRE_PRUNIER' by 5 commits.
(use "git push" to publish your local commits)
clserre1@A210PC12:/h/Documents/cdpw $ date > easy_merge
```
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
clserre1@A210PC12:/h/Documents/cdpw $ git merge SERRE_PRUNIER-3.6
Auto-merging easy_merge
CONFLICT (content): Merge conflict in easy_merge
Automatic merge failed; fix conflicts and then commit the result.
```
Conflit de merge car les deux fichiers ont changé de contenu sur la même ligne (ici l'intégralité du fichier) après la séparation de la branche principale en deux branches.
```
git
clserre1@A210PC12:/h/Documents/cdpw $ cat easy_merge
<<<<<<< HEAD
lun. 29 janv. 2018 18:59:12
=======
lun. 29 janv. 2018 18:57:17
>>>>>>> SERRE_PRUNIER-3.6
```
On garde soit l'une soit l'autre des lignes (ou les deux, ici c'est possible) et on supprime les lignes ajoutées par git.
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 `*`
##### 4. Remote
##### 4. Remote
...
...
This diff is collapsed.
Click to expand it.
easy_merge
+
4
−
0
View file @
3bcd315e
<<<<<<< HEAD
lun. 29 janv. 2018 18:59:12
lun. 29 janv. 2018 18:59:12
=======
lun. 29 janv. 2018 18:57:17
>>>>>>> SERRE_PRUNIER-3.6
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