topfloor/composer-cleanup-vcs-dirs

Automatically deletes .git directories in newly installed or updated dependencies.

Installs: 327 680

Dependents: 4

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 4

Open Issues: 1

Type:composer-plugin

1.1.0 2021-07-09 16:11 UTC

This package is auto-updated.

Last update: 2024-10-09 23:15:53 UTC


README

If you're stuck needing to commit your composer dependencies, you might find you need to delete some extra .git directories after every time you install or update something with Composer.

While not a best practice, sometimes it's simply a requirement.

How to use the plugin

When required in composer.json, the plugin will automatically search for any .git directories in installed or updated dependencies and delete them immediately.

There's nothing else you need to do after requiring this plugin in your main composer.json file.

Running the command directly

You can also run the cleanup-vcs-dirs command directly in Composer.

To do so, simply run:

composer cleanup-vcs-dirs

Your entire project will be scanned, and all child .git directories under the project directory will be deleted.