git branch --merged

Category: Git - Core

git branch --merged

List branches fully merged into HEAD

Shows branches whose commits are all reachable from the current branch, meaning their work is already integrated. These are the safe candidates for deletion with git branch -d. Pass a ref like --merged origin/main to check against the remote instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.