Skip to content

vanderhoop/git-brdi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-brdi

Interactively delete local git branches, sorted by last-touched date.

git brdi walks through each of your local branches (most recent first, skipping the default branch) and prompts you to delete or skip it.

(1/4) Delete tdd-lesson-plan (last touched 3 days ago) [y,n,q,?]? y
    Deleted branch tdd-lesson-plan (was abc1234).
(2/4) Delete elixir-dbg-lesson-plan (last touched 2 weeks ago) [y,n,q,?]? n
(3/4) Delete chrome-debugger-lesson-plan (last touched 3 months ago) [y,n,q,?]? q

Done. Deleted 1 branch, skipped 1.

Install

cargo install git-brdi

This installs the git-brdi binary. Because it follows the git-<name> convention, git picks it up as a subcommand:

git brdi

Usage

Run git brdi from any git repository. For each branch you'll be prompted with:

  • y - delete the branch (git branch -d)
  • n - skip
  • q - quit
  • ? - print help

About

interactive git branch deletion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages