Skip to content

Commit 9728101

Browse files
committed
Merge transcript.
1 parent 7d3c077 commit 9728101

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

meld.png

45.2 KB
Loading

mergetool

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
anders@balanced-tree:/tmp/foo$ git init
2+
Initialized empty Git repository in /tmp/foo/.git/
3+
anders@balanced-tree:/tmp/foo$ echo 'hello' > file
4+
anders@balanced-tree:/tmp/foo$ git add file
5+
anders@balanced-tree:/tmp/foo$ git commit -m 'Initial commit.'
6+
Created initial commit 99137ab: Initial commit.
7+
1 files changed, 1 insertions(+), 0 deletions(-)
8+
create mode 100644 file
9+
anders@balanced-tree:/tmp/foo$ git checkout -b branch
10+
Switched to a new branch "branch"
11+
anders@balanced-tree:/tmp/foo$ echo 'world' >> file
12+
anders@balanced-tree:/tmp/foo$ git add file
13+
anders@balanced-tree:/tmp/foo$ git commit -m 'Add "world".'
14+
Created commit 83649e8: Add "world".
15+
1 files changed, 1 insertions(+), 0 deletions(-)
16+
anders@balanced-tree:/tmp/foo$ git checkout master
17+
Switched to branch "master"
18+
anders@balanced-tree:/tmp/foo$ echo 'git' >> file
19+
anders@balanced-tree:/tmp/foo$ git add file
20+
anders@balanced-tree:/tmp/foo$ git commit -m 'Add "git".'
21+
Created commit 308abbb: Add "git".
22+
1 files changed, 1 insertions(+), 0 deletions(-)
23+
anders@balanced-tree:/tmp/foo$ git merge branch
24+
Auto-merged file
25+
CONFLICT (content): Merge conflict in file
26+
Automatic merge failed; fix conflicts and then commit the result.
27+
anders@balanced-tree:/tmp/foo$ git status
28+
file: needs merge
29+
# On branch master
30+
# Changed but not updated:
31+
# (use "git add <file>..." to update what will be committed)
32+
#
33+
# {\color{red}unmerged: file}
34+
#
35+
# Untracked files:
36+
# (use "git add <file>..." to include in what will be committed)
37+
#
38+
# {\color{red}file.orig}
39+
no changes added to commit (use "git add" and/or "git commit -a")
40+
anders@balanced-tree:/tmp/foo$ cat file
41+
hello
42+
<<<<<<< HEAD:file
43+
git
44+
=======
45+
world
46+
>>>>>>> branch:file
47+
anders@balanced-tree:/tmp/foo$ git mergetool
48+
Merging the files: file
49+
50+
Normal merge conflict for 'file':
51+
{local}: modified
52+
{remote}: modified
53+
Hit return to start merge resolution tool (meld):
54+
anders@balanced-tree:/tmp/foo$ cat file
55+
hello
56+
git world
57+
anders@balanced-tree:/tmp/foo$ git status
58+
# On branch master
59+
# Changes to be committed:
60+
# (use "git reset HEAD <file>..." to unstage)
61+
#
62+
# {\color{green}modified: file}
63+
#
64+
# Untracked files:
65+
# (use "git add <file>..." to include in what will be committed)
66+
#
67+
# {\color{red}file.orig}
68+
anders@balanced-tree:/tmp/foo$ git commit
69+
Created commit 498d489: Merge branch 'branch'
70+

0 commit comments

Comments
 (0)