Ali Farhoudi Ali Farhoudi - 1 year ago 135
Git Question

How to remove git hooks

I had set up a git hook in pre-commit file to run

git pull
before any commit. Now I have deleted that file and restarted my computer multiple times, but that hook is still running before my commits.

How can I remove or disable that completely?

Answer Source

I figured what was causing that:
I had created my pre-commit hook in git core directory, but the git had created a pre-commit hook in project's .git/hooks/ directory. I just removed it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download