Skip to content

Commit f84a7aa

Browse files
author
jordanmccullough
committed
Add branch command line slide examples
1 parent 141d891 commit f84a7aa

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

intermediate/index.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,25 @@ $ git log --patch --color-words
350350

351351
{% capture slide %}
352352
```shell
353-
# Create a new branch from current one
353+
# Create a new branch from the current one
354354

355-
git branch
355+
$ git branch [branch-name]
356+
```
357+
{% endcapture %}{% include slide-section %}
358+
359+
{% capture slide %}
360+
```shell
361+
# Switch to a specified branch
362+
363+
$ git checkout [branch-name]
364+
```
365+
{% endcapture %}{% include slide-section %}
366+
367+
{% capture slide %}
368+
```shell
369+
# List all local branches
370+
371+
$ git branch
356372
```
357373
{% endcapture %}{% include slide-section %}
358374

0 commit comments

Comments
 (0)