Delete all branches except the specified branch.
go install github.com/yuzoiwasaki/sweep@latest
or
curl -fLo /usr/local/bin/sweep \
https://github.com/yuzoiwasaki/sweep/blob/master/bin/sweep
Delete all branches except main.
sweep
Delete all branches except foo.
sweep -v foo
Delete all branches except main, foo.
sweep -v main -v foo