Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
andOlga
17 days ago
|
parent
|
context
|
favorite
| on:
I Inspected My Take-Home Interview Project. It Was...
git config --global core.hooksPath /dev/null
Then, in repos you want to turn it on:
git config core.hooksPath "$PWD/.git/hooks"
This also works on Windows (and presumably other operating systems where /dev/null does not exist) as it seems to be handled as a special-case value.
sph
17 days ago
[–]
I would have liked for git to ask me first (like direnv does), rather than disabling them altogether, but this is good enough for now, so thanks.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: