LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-show-merged-branches

List branches merged into the current branch

TLDR

Show merged branches
$ git show-merged-branches
copy

SYNOPSIS

git show-merged-branches

DESCRIPTION

git show-merged-branches lists local branches that have been fully merged into HEAD. Part of git-extras, it runs `git branch --merged` and filters out the current branch and the repository's default branch (e.g. `main`/`master`), leaving only the branches that are genuine candidates for deletion.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Part of git-extras package; only inspects local branches. See `git-show-unmerged-branches` for the inverse view.

SEE ALSO

RESOURCES

Copied to clipboard
Kai