Skip to content

Commit

Permalink
04_branch: add list commit
Browse files Browse the repository at this point in the history
  • Loading branch information
miallo committed Jan 2, 2024
1 parent df0fbbc commit fb7b0df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions create_challenge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ cat "$DOCDIR/04_branch/branch_create_delete.md" >> branch.md
git add branch.md
commit -m "WIP branch: add explanation on how to create/delete"

cat "$DOCDIR/04_branch/branch_list.md" >> branch.md
git add branch.md
commit -m "WIP branch: add explanation on how to list local branches"

git switch main

# commit
Expand Down
7 changes: 7 additions & 0 deletions src/04_branch/branch_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## List branches

If you want to get an overview on the available branches you can run
```sh
git branch
```
to see all your local branches. The current branch will be highlighted in green and marked with an asterisk.

0 comments on commit fb7b0df

Please sign in to comment.