View merged branches

Git, Repository, Branch · Apr 13, 2021

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 Q to exit.
git branch -a --merged
git checkout master
git branch -a --merged
# patch-1
# patch-2

More like this

  • Git Branches

    Master git branch commands with this snippet collection of simplified git documentation and tips.

    Collection · 37 snippets

  • View branches sorted by date

    Prints a list of all local branches sorted by date.

    Git, Repository · Apr 13, 2021

  • View local branches

    Prints a list of all local branches.

    Git, Repository · Apr 13, 2021

  • Delete merged branches

    Deletes all local merged branches.

    Git, Repository · Apr 13, 2021