2 stable releases

2.0.1 Feb 7, 2021

#86 in #git-branch

MIT license

12KB
276 lines

🗑 git-tidy

Tidy up stale git branches.

Installation

Cargo

$ cargo install git-tidy

Usage

$ git tidy # executes "git branch -d" on ": gone" branches

With force delete

$ git tidy -f # same as above, but with "-D" instead of "-d"
# or
$ git tidy --force

Interactive

Present all stale (": gone") branches in a checkbox list, allowing user to opt-in to deletions.

$ git tidy -i
# or
$ git tidy --interactive
# with force
$ git tidy -if
# or
$ git tidy --interactive --force

Dependencies

~8–19MB
~259K SLoC