[Git] List branches that have been merged

Created on November 30, 2026

Use git branch --merged to list local branches whose tips are reachable from the current commit.

git branch --merged

For example, after merging feature into master, the output on master might look like this. The asterisk marks the checked-out branch.

  feature
* master

Pass a commit or branch name to check which branches are merged into that revision. HEAD explicitly selects the current commit.

git branch --merged HEAD
Git