Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Version Control with Git - Archived
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
HIFIS
HIFIS Software Services
Education and Training
Workshop Materials
Git and GitLab Courses
Version Control with Git - Archived
Commits
f33413dc
Commit
f33413dc
authored
4 years ago
by
Tobias Schlauch
Browse files
Options
Downloads
Patches
Plain Diff
Fix figures and extend key points
parent
8c76fc94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Resolve "Move tagging to episode 10"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
episodes/08-conflicts.md
+11
-10
11 additions, 10 deletions
episodes/08-conflicts.md
with
11 additions
and
10 deletions
episodes/08-conflicts.md
+
11
−
10
View file @
f33413dc
...
...
@@ -65,9 +65,9 @@ o - o <- HEAD, master, mummy-info
-
Verify with
`git graph`
```
o <- HEAD, mummy-info
o
- o
<- HEAD, mummy-info
/
o - o <- master
o - o
<- master
```
## Prepare the Conflict
...
...
@@ -81,9 +81,9 @@ o - o <- master
-
Verify with
`git graph`
```
o <- mummy-info
o
- o
<- mummy-info
/
o - o - o <- HEAD, master
o - o - o
<- HEAD, master
```
## Merge and Resolve the Conflict
...
...
@@ -101,9 +101,9 @@ o - o - o <- HEAD, master
-
Highlight that no version/commit is lost in a merge
```
o <- mummy-info
/ \
o - o - o
- o
<- HEAD, master
o -
o <- mummy-info
/
\
o - o - o
- o
<- HEAD, master
```
-
Clean up the local branch
...
...
@@ -111,13 +111,14 @@ o - o - o - o <- HEAD, master
-
Verfiy with
`git branch`
and
`git graph`
```
o
/ \
o - o - o
- o
<- HEAD, master
o -
o
/
\
o - o - o
- o
<- HEAD, master
```
## Key Points
-
Branching is an important concept in Git
-
Git can merge diverging files line-based
-
unless the same line is changed in different ways
-
Resolve conflicts by editing the
`<<< ... === ... >>>`
sections
...
...
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