Skip to content

dantas/git-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Cleanup

It is a small CLI tool that deletes local branches that are gone from any origin.

Status: Completed

Help

Options:

  • --help: Print help
  • --path : Execute operations in another path. Default is current directory.
  • --fetch-prune: Execute git fetch --prune before executing specified command

Commands:

  • list: List branches
    • --help: Print list options
    • --gone: List tracking branches that are gone from origin (default option)
    • --diverged: List tracking branches that diverged from origin
    • --all: List all local and tracked branches
    • --tracked: List all tracked branches
    • --local: List local branches
  • clean: Delete local branches that are gone from origin
    • --help: Print clean options
    • --step: Ask for user confirmation before deleting each branch (default option)
    • --automatic: Delete branches without asking for user confirmation

Disclaimer

Be careful when using this program. It may contain bugs that can lead to data loss.
Use it at your own peril.

Developer notes

Tests that execute external binaries require the feature testbin
Because this is my first Rust project, I'm choosing to use the minimum amout of crates so that I can code more, not less.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages