Command
git branch --merged / --no-merged
List branch tips reachable or not reachable from the specified commit. Ancestry is not a test of code quality or equivalent content.
Formal Syntax & Structure
git syntaxgit
git branch --merged REV | git branch --no-merged REVWorking Example
Example Snippetgit
git branch --merged main