/git-tools

A small tool to execute the git gc command

Primary LanguageRustApache License 2.0Apache-2.0

Git TooLs

build release

A small tool written in Rust to execute the git gc command in the specified folder and its sub-folders

Requirements

The du and git command are needed.

Usage

$> 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.