githooksgit-extensionsgitkrakenhusky

How to disable git hooks in gitkraken?


I'm working with a project that has git hooks configured. Unfortunately. It was added to prevent juniors or headless developers to commit CI-check-failing code to their branch.

I am one of these, who ignore git hooks with HUSKY_SKIP_HOOKS env variable, but for me it doesn't work in GitKraken.

Do you know how to ignore git hooks in GitKraken?


Solution

  • Well, I did receive a response from their support, that works for me.

    Additionally, you should still be able to disable these hooks from executing. You will need to change the chmod permissions for the files, which reside under local_repo/.git/hooks.

    chmod -x .git/hooks/*

    And it works for me.