Files
30-seconds-of-code/snippets/view-merged-branches.md
2021-04-08 20:32:07 +03:00

21 lines
364 B
Markdown

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