Since version 1.0.0, swagit has been rewritten in Rust, so you can install it directly via cargo.
cargo install swagit
The npm version wraps the binary with JavaScript, so it will be slower than the crates version.
npm install -g swagit
pnpm add -g swagit
yarn global add swagit
Once that's done, you can run this command inside your project's directory:
swagit
You can set an alias to use a more convenient command:
alias sg="swagit"
Enter an interactive mode to select branches to be deleted.
Sync all branches and delete merged branches.
MIT © Evan Ye