5 stable releases

1.0.4 Nov 11, 2024
1.0.1 Nov 10, 2024

#2550 in Command line utilities

Download history 406/week @ 2024-11-09 26/week @ 2024-11-16 2/week @ 2024-11-23 2/week @ 2024-11-30

436 downloads per month

MIT license

27KB
411 lines

Swagit

Install

Since version 1.0.0, swagit has been rewritten in Rust, so you can install it directly via cargo.

cargo install swagit

npm(legacy)

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

Usage

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"

Options

--delete or -d

Enter an interactive mode to select branches to be deleted.

--sync or -s (alpha test)

Sync all branches and delete merged branches.

License

MIT © Evan Ye

Dependencies

~4–15MB
~138K SLoC