Files
30-seconds-of-code/snippets/view-all-branches.md
Isabelle Viktoria Maciohsek f08f228895 Add view local branches
2021-04-04 14:05:57 +03:00

21 lines
298 B
Markdown

---
title: View local branches
tags: repository,branch,beginner
---
Prints a list of all local branches.
- Use `git branch` to display a list of all local branches.
- Use arrow keys to navigate, press <kbd>Q</kbd> to exit.
```sh
git branch
```
```sh
git branch
# master
# patch-1
# patch-2
```