'Git-Tower for Mac - how can i use --no-verify flag in each commit?

We are using husky pre-commit hooks and i cannot commit with tower ever since. I use the CLI for my commits now but i want to be able to use Git Tower as well.

Any users out there know a quick fix? Thank you.



Solution 1:[1]

In general, Desktop Apps don't have the Shell environment available. In order to enable you to use your commit hook with the bundled Git binary, you'll need to set up an environment.plist file manually.

Here is a detailed guide for this in the Tower Help guide: https://www.git-tower.com/help/mac/faq-and-tips/faq/hook-scripts

Please feel free to reach out to us via https://www.git-tower.com/support/contact if you need further assistance.

Solution 2:[2]

I have found this useful article: https://dev.to/studiospindle/using-husky-s-pre-commit-hook-with-a-gui-21ch

You can create a file ~/.huskyrc containing:

PATH="/usr/local/bin:$PATH"

or if you use nvm:

PATH="/usr/local/bin:$PATH"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nora --Git Tower support
Solution 2 mathieug