Skip to content

Commit fc289e9

Browse files
authored
Merge pull request #296 from tkphd/patch-1
Fix enumerated options in "Test Your Understanding"
2 parents df72c62 + 4c3344f commit fc289e9

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

_episodes/06-branches.md

+21-25
Original file line numberDiff line numberDiff line change
@@ -595,31 +595,27 @@ No problem: we worked on a branch, branch is deleted, `master` is clean.
595595
> ## Test your understanding
596596
>
597597
> 1. Which of the following combos (one or more) creates a new branch and makes a commit to it?
598-
> 1.
599-
> ```shell
600-
> $ git branch new-branch
601-
> $ git add file.txt
602-
> $ git commit
603-
> ```
604-
> 2.
605-
> ```shell
606-
> $ git add file.txt
607-
> $ git branch new-branch
608-
> $ git checkout new-branch
609-
> $ git commit
610-
> ```
611-
> 3.
612-
> ```shell
613-
> $ git checkout -b new-branch
614-
> $ git add file.txt
615-
> $ git commit
616-
> ```
617-
> 4.
618-
> ```shell
619-
> $ git checkout new-branch
620-
> $ git add file.txt
621-
> $ git commit
622-
> ```
598+
> 1. ```shell
599+
> $ git branch new-branch
600+
> $ git add file.txt
601+
> $ git commit
602+
> ```
603+
> 2. ```shell
604+
> $ git add file.txt
605+
> $ git branch new-branch
606+
> $ git checkout new-branch
607+
> $ git commit
608+
> ```
609+
> 3. ```shell
610+
> $ git checkout -b new-branch
611+
> $ git add file.txt
612+
> $ git commit
613+
> ```
614+
> 4. ```shell
615+
> $ git checkout new-branch
616+
> $ git add file.txt
617+
> $ git commit
618+
> ```
623619
> 2. What is a detached `HEAD`?
624620
> 3. What are orphaned commits?
625621
>

0 commit comments

Comments
 (0)