A small tool written in Rust to execute the git gc command in the specified folder and its sub-folders
The du
and git
command are needed.
$> gtl --help
Git TooLs
Usage: gtl <COMMAND>
Commands:
gc Garbage collect
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
$> gtl gc --help
Garbage collect
Usage: gtl gc [OPTIONS]
Options:
-f, --folder <FOLDER> The folder to garbage collect. Git TooLs will search recursively git repository in this folder. By default the current folder is used
-h, --help Print help
-V, --version Print version
This will scan for git repository in your current directory and if it finds one, it will execute the git gc --aggressive
command.