Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/)