Squash Merges in Git and GitHub
How squash merging collapses a branch into one commit, why Git then can't tell the branch was merged, and how to detect and clean up those branches.
Content tagged squash-merge
Snippet:
git prune-branches: Delete Merged and Squash-Merged BranchesDelete merged, squash-merged and rebased local Git branches safely.A git prune-branches command that deletes local branches merged into main — including GitHub squash merges git branch --merged misses — with a restore command for each.