git hew

Delete all branches that have been merged into a commit

Git alias:

hew = !git hew-local "$@" && git hew-remote "$@";

Syntax:

hew [<commit>]

Example with default branch name:

git hew

Example with specific branch name:

git hew main

Example with specific commit hash:

git hew 4677ad893ee038b113e22f6330da6ae710712f88

Compare these: