Skip to content

Remove old unused origin branches from git repository

Notifications You must be signed in to change notification settings

webcoder-club/git-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Remove old unused origin branches from git repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages