Let's fix the Husky Git pre-commit hook failures on GitHub Desktop on Windows!
First, if you are facing the same issue as mine, please try the following steps:
484 x 300, 8.3 KB, PNG
Issue with GitHub Desktop
First, copy the following text, you may need to update this to reflect your actual location of Git Bash bin.
txt
C:\Program Files\Git\bin
Copy this text, adjust to your Git Bash bin if needed
Then, type "environment" in the Windows search bar (on the bottom left of the screen), select "Edit the system environment variables"
Privilege right may be needed
In some cases, you need to open this with Administrator
Under Advanced tab (we're here by default), click on Environment Variables" near the bottom of the pop-up window.
Then, under "System variables", locate the "Path" variable row, double click on it.
Another window is shown up, click on "New" and paste the copied text before.
525 x 498, 17.8 KB, PNG
Then click OK, then OK, then OK to save the setting.
Next, you need to quit the GitHub desktop completely (by clicking File > Quit on the app) and open again, try to commit some changes to see if it works.