Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-commit hook still exists after removing the gem #5

Open
xalebaro opened this issue Jul 22, 2021 · 1 comment
Open

Pre-commit hook still exists after removing the gem #5

xalebaro opened this issue Jul 22, 2021 · 1 comment

Comments

@xalebaro
Copy link

Hi, I was testing this gem in a new branch including the Pre-commit hook, but after changing to another branch that doesn't have the gem, each time I tried to create a commit it throws this error.

git … commit -- can't find rubocop in current bundle

I had to install the gem again so I could create a new commit, and then remove the gem again.

What's the right procedure to uninstall this gem including the pre-commit hook?

@TheWudu
Copy link

TheWudu commented Jul 23, 2021

Hello!

Usually you can find the pre-commit hooks in a file called

.git/hooks/pre-commit

in your repository. If it is the only pre-commit hook i guess you can delete it, or also just empty it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants