Skip to content

Girgetto/gitclean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitclean

gitclean

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.

Features

  • Interactive Navigation: Easily navigate through your file system starting from the current directory.
  • Safe Deletion: Preview and select .git directories before deciding to delete them.
  • Efficient Clean-up: Quickly free up space and declutter your development environment.

Requirements

  • Rust 1.70 or later (includes cargo)

Usage

Run from source

Clone the repository and run directly with Cargo:

git clone https://github.com/Girgetto/gitclean.git
cd gitclean
cargo run --release

gitclean starts in the current working directory, so cd to the root you want to scan before running it.

Install globally

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
gitclean

Download the pre-built binary

Download the latest binary from the releases page.

About

gitclean is a command-line utility written in Rust, designed to help developers and system administrators clean up unused .git directories.

Resources

Stars

Watchers

Forks

Contributors

Languages