Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marko19907/git-cleaner
A simple utility that can run the git gc command on all sub-folders.
https://github.com/marko19907/git-cleaner
cleaner git java javafx maven multithreading mvc-architecture recursion threads utility
Last synced: 20 days ago
JSON representation
A simple utility that can run the git gc command on all sub-folders.
- Host: GitHub
- URL: https://github.com/marko19907/git-cleaner
- Owner: Marko19907
- License: mit
- Created: 2022-01-06T17:38:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-16T00:33:46.000Z (almost 3 years ago)
- Last Synced: 2024-11-06T15:54:41.503Z (2 months ago)
- Topics: cleaner, git, java, javafx, maven, multithreading, mvc-architecture, recursion, threads, utility
- Language: Java
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git cleaner
A small program written in Java that can run the git clean command on all git projects found in the given folder.
The goal is to reduce the size of the .git folder(s) and save some space.[![Java CI with Maven](https://github.com/Marko19907/Git-cleaner/actions/workflows/maven.yml/badge.svg?branch=main)](https://github.com/Marko19907/Git-cleaner/actions/workflows/maven.yml)
## Usage example
The program will run the
`` git gc --aggressive --prune ``
command on all git folders that it finds in a given directory.For example, consider the following folder structure:
```
root
├───home
│ ├───homeProj1
│ ├───homeProj2
│ └───homeProj3
└───work
├───proj1
├───proj2
└───proj3
```When given the folder **"root"** as the input, the program will descend down the tree to find all folders that
contain a git project and run the `` git gc --aggressive --prune `` command in each folder.## Requirements
* A Windows based OS, Linux and macOS are not supported.## Getting Started
### GitHub Releases [Recommended]
Released builds can be downloaded from this repository's "Releases" page
This is the preferred method.### Other installation methods
#### Via GitHub
Either clone the repository with git or download it as a zip, then run it with you favourite IDE.
This method requires a local JDK 17 or above installation.## Disclaimers
* The icon was made by ["Freepik"](https://www.flaticon.com/authors/freepik) from [flaticon.com](https://www.flaticon.com/)