Lakshmikanth2001 / GitHooks

Git Hooks VS-Code Extension
https://marketplace.visualstudio.com/items?itemName=lakshmikanthayyadevara.githooks
Other
7 stars 2 forks source link

error: cannot find a hook named pre-commit #1

Closed nnamacha closed 1 year ago

nnamacha commented 2 years ago

When i try to run the pre-commit git hook VS Code seems to not be able to find it . Although i can see it . What could i be missing

image

Lakshmikanth2001 commented 2 years ago

sorry for your inconvenience can you let me know your git version cmd: git --version

This mainly happens if your hook is inactive. Reload the hooks by pressing the reload button on top right and try it again

if you are using git version > 2.36.1

try cmd: git hook run pre-commit through your terminal if you still face the error there is some thing wrong with the git on your local system

please provide your valuable feed back

Lakshmikanth2001 commented 1 year ago

I think this issue is not active in recent past so I am closing this issue, please feel free to reopen if you are facing any bug