Skip to content

Is there any way to set a command line flag to tell git to NOT run any hooks? #3201

Answered by rimrul
eamodio asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think there is a command line option for that. You might be able to achieve that result by pointing core.hooksPath to a non-existing or empty directory though, so something like git -c core.hooksPath=/dev/null foo might work.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@derrickstolee
Comment options

@eamodio
Comment options

@dscho
Comment options

dscho May 5, 2021
Maintainer

Answer selected by dscho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants