Skip to content

Troubleshooting

Harry edited this page Sep 20, 2022 · 3 revisions

Error: husky - Command not found when committing

If you're running Git from an app and the command can be found in your terminal, this means that the PATH in your app is different from your terminal.

# unsets the hooks path if its different
$ git config --unset core.hooksPath

# To revert the git-flow hooks directory back to its default you need to reset the config to point to the default Git hooks directory.
$ git config gitflow.path.hooks .git/hooks

Clone this wiki locally