I have pre-push hook implemented with Husky. Now I wanna remove it.
Problem is that after yarn remove husky
git hooks are still there inside .git/hooks
.
Because of that I get this error every time I want to commit or switch branch or commit, thus commiting is not even possible -->
.git/hooks/pre-commit: line 6: node_modules/run-node/run-node: No such file or directory
I know I can always delete every hook inside .git/hooks
but how I can push this changes remotely? How not to force my teammates do the same thing?
Also I know I can commit using -n
flag but still I would like not to do it.