Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Git course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
courses
Git course
Merge requests
!4
Updates martijn
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Updates martijn
updates_martijn
into
master
Overview
0
Commits
5
Changes
1
Merged
Martijn Vermaat
requested to merge
updates_martijn
into
master
10 years ago
Overview
0
Commits
5
Changes
1
Expand
0
0
Merge request reports
Viewing commit
abd7af06
Prev
Next
Show latest version
1 file
+
25
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
abd7af06
Add slide on merge --abort
· abd7af06
Vermaat
authored
10 years ago
branching/branching.tex
+
25
−
1
Options
@@ -491,7 +491,7 @@ $ emacs README
\end{frame}
\begin{frame}
[fragile]
\frametitle
{
Resolving a merge conflict (
1
/2)
}
\frametitle
{
Resolving a merge conflict (
2
/2)
}
We resolve the conflict by hand.
\bigskip
\begin{lstlisting}
@@ -513,6 +513,30 @@ $ git commit
\end
{
lstlisting
}
\end
{
frame
}
\begin
{
frame
}
[
fragile
]
\frametitle
{
Aborting a merge
}
If you don't feel like resolving the merge conflict, you can go back with
\bt
{
git merge
--
abort
}
.
\bigskip
\begin
{
lstlisting
}
$
git merge simpsons
Auto-merging README
CONFLICT (content): Merge conflict in README
Automatic merge failed; fix conflicts and then
commit the result.
\end{lstlisting}
\bigskip
\begin{lstlisting}
$
git merge
--
abort
\end
{
lstlisting
}
\bigskip
\begin
{
lstlisting
}
$
git status
# On branch master
nothing to commit (working directory clean)
\end{lstlisting}
\end{frame}
\begin{frame}
[fragile]
\frametitle
{
Resolving conflicts with
\bt
{
git mergetool
}}
We can also use graphical merge tools such as
{
\em
Meld
}
.
Loading