gitclean is a command-line utility written in Rust, designed to help developers and system administrators clean up unused .git directories. It provides an interactive interface to navigate through directories starting from where you initialize the gitclean command. You can then choose which .git folders to delete using the arrow keys and the 'd' key.
- Interactive Navigation: Easily navigate through your file system starting from the current directory.
- Safe Deletion: Preview and select
.gitdirectories before deciding to delete them. - Efficient Clean-up: Quickly free up space and declutter your development environment.
- Rust 1.70 or later (includes
cargo)
Clone the repository and run directly with Cargo:
git clone https://github.com/Girgetto/gitclean.git
cd gitclean
cargo run --releasegitclean starts in the current working directory, so cd to the root you want to scan before running it.
Install the binary into ~/.cargo/bin so it is available anywhere on your PATH:
cargo install --path .Then launch it from any directory:
cd ~/projects
gitcleanDownload the latest binary from the releases page.
