captainhookphp / captainhook

CaptainHook is a very flexible git hook manager for software developers that makes sharing git hooks with your team a breeze.
http://captainhook.info
MIT License
1.01k stars 87 forks source link

How to uninstall composer-plugin? #179

Closed hmingv closed 2 years ago

hmingv commented 2 years ago

I can't seem to find a way to uninstall in the documentation.

hmingv commented 2 years ago

https://captainhookphp.github.io/captainhook/composer.html

I learned to install, but don't know how to uninstall it when I don't need it.

./vendor/bin/captainhook disable pre-commit

I could also disable a hook, but that's not what I want.

sebastianfeldmann commented 2 years ago

If you want to uninstall it just remove the package from your composer configuration. The only thing you have to do manually is to remove the hook scripts. I can't really do that for you because I don't know if you are maybe using a different tool and then I would destroy your setup.

So you have to delete .git/hooks/ALL_HOOKS_YOU_DONT_NEED manually.

If you haven't done anything else with git hooks remove every file in .git/hooks that does not end with .sample those are there by default. But you could delete them as well without causing any problems.

hmingv commented 2 years ago

Good idea, thanks for your reply.