https://github.com/michaelcoll/git-tools
A small tool to execute the git gc command
https://github.com/michaelcoll/git-tools
git rust
Last synced: 6 months ago
JSON representation
A small tool to execute the git gc command
- Host: GitHub
- URL: https://github.com/michaelcoll/git-tools
- Owner: michaelcoll
- License: apache-2.0
- Created: 2022-07-31T17:10:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-20T05:06:56.000Z (8 months ago)
- Last Synced: 2025-11-20T07:06:34.130Z (8 months ago)
- Topics: git, rust
- Language: Rust
- Homepage:
- Size: 263 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Git TooLs
[](https://github.com/michaelcoll/git-compact/actions/workflows/build.yml) 
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
```shell
$> gtl --help
Git TooLs
Usage: gtl
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
```
```shell
$> gtl gc --help
Garbage collect
Usage: gtl gc [OPTIONS]
Options:
-f, --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.