Skip to content

Commit 2df77dc

Browse files
committed
[conflict-mediator] Rename branches meaningfully
1 parent 20a40ec commit 2df77dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

conflict_mediator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ John wants to change the script to print "Hello World!", while Josh wants to cha
66

77
## Task
88

9-
Try to merge Josh's branch into `main`. You should encounter a merge conflict.
9+
Try to merge Josh's branch (branch name `josh`) into `main`. You should encounter a merge conflict.
1010

1111
Fix the merge conflict created by merging both John's and Josh's changes, setting the text to "Hello Everyone and World!" instead.
1212

conflict_mediator/download.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ def setup(verbose: bool = False):
6363
tag_name = f"git-mastery-start-{first_commit}"
6464
run_command(["git", "tag", tag_name], verbose)
6565

66-
run_command(["git", "checkout", "-b", "A"], verbose)
66+
run_command(["git", "checkout", "-b", "john"], verbose)
6767
create_or_update_file("script.py", "print('Hello World!')")
6868
run_command(["git", "add", "script.py"], verbose)
6969
run_command(["git", "commit", "-m", "Hello world"], verbose)
7070

7171
run_command(["git", "checkout", "main"], verbose)
72-
run_command(["git", "checkout", "-b", "B"], verbose)
72+
run_command(["git", "checkout", "-b", "josh"], verbose)
7373
create_or_update_file("script.py", "print('Hello Everyone!')")
7474
run_command(["git", "add", "script.py"], verbose)
7575
run_command(["git", "commit", "-m", "Hello everyone"], verbose)
7676

7777
run_command(["git", "checkout", "main"], verbose)
78-
run_command(["git", "merge", "A", "--no-edit"], verbose)
78+
run_command(["git", "merge", "john", "--no-edit"], verbose)

0 commit comments

Comments
 (0)