Skip to content

struong/ghune

Repository files navigation

ghune

Cleaning up repos from the Github UI is tedious. Bulk-delete GitHub repos from the terminal instead!

ghune demo

Install

cargo install ghune

Setup

Create a GitHub token at https://github.com/settings/tokens/new with repo and delete_repo scopes. The tool prompts for it on first run and stores it in ~/.config/ghune/token.

Usage

ghune            # interactive mode
ghune --dry-run  # test without deleting
ghune --logout   # clear stored token

Keybindings

Search mode:

  • C-j/k or arrows — navigate
  • Enter or Space — stage repo for deletion
  • <Tab> — switch to staging mode
  • C-p — filter private only
  • C-f — filter forks only
  • C-s — cycle sort (updated/created/name/stars)
  • C-r — refresh
  • Type to fuzzy search

Staging mode:

  • C-j/k — navigate
  • Backspace or Space — unstage repo
  • Enter — confirm deletion (with confirmation dialog)
  • <Tab> or Esc — back to search

License

MIT

About

Prune your Github repositories

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •