Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 324 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 324 Bytes

Git cleaner

composer install
php main.php

Usage Example

$app = new GitCleaner();

$app->removeUnusedBranches();

$app->notify(
    function ($branch) {
        /** @var GitRef $branch */
        echo $branch->getRefName() . PHP_EOL;
    }
);

Run tests

./vendor/bin/phpunit tests