Questions tagged [git-husky]

Git husky is a Git hook. Git hooks are scripts that Git executes before or after events such as: commit, push, and receive. Use this tag for questions specifically about Git husky, not for questions about Git hooks in general.

92 questions
-1
votes
0 answers

How should I configure Husky in a monorepo context?

I'm trying to run the yarn prettier command at each pre-commit. I found out that I should use Husky in order to create a git hook. And it works but since I'm a monorepo it pushed my working directory and erased the parent. Here are the steps that I…
JSharles
  • 565
  • 1
  • 5
  • 16
-2
votes
1 answer

husky precommit want to developer to force make relivant changes in two similar file otherwise commit msg thow error

if you want when developer changed one file of the project and you want to force to make relevant changes in to another "similar " file with the help of husky and shellScript..
1 2 3 4 5 6
7