Git alias:
hew-local = !"f() { \
git hew-local-dry-run \"$@\" | \
xargs git branch --delete ; \
}; f \"$@\""
Syntax:
git hew-local [<commit>]Example with the default branch name:
git hew-localExample with a specific branch name:
git hew-local mainExample with a specific commmit hash:
git hew-local 4677ad893ee038b113e22f6330da6ae710712f88If a branch is provided, or commit is provided, then this alias will use it.
Otherwise, this alias will use the current branch name.
Compare these: