Error! On commiting the changes(help needed)

Hello Community Members,
So today after making some necessary changes I tried to commit my changes.
But it throws,
husky - pre-commit hook exited with code 1 (error)
this error. If anyone of you have faced please help or suggest a way to resolve it.
Thanks in advance.

Hey @Sagar.Singh. there could be two solutions for this. the first one you can flush your .github/husky folder and then re-install. or the temporary/quick solution can be to add git commit -m "message" --no-verify to use no verify.

Note: @Sagar.singh " One thing I would like to add is that when I tried commiting through wsl It worked perfectly fine without any error. It only happened when I tried commiting though vscode. Maybe Its because of vscode."

1 Like

Thank you @Yash_Sharma I’ll try to perform the above solution.

Yeah sure, Let me know if that helps

I vote for @Yash_Sharma 's provided potential solution to be approved.
// @vishalvivekm

3 Likes

@Samyak.Shah @vishalvivekm @Yash_Sharma One thing I would like to add is that when I tried commiting through wsl It worked perfectly fine without any error. It only happened when I tried commiting though vscode. Maybe Its because of vscode.

@Sagar.Singh @Yash_Sharma Thanks folks. It’s helpful.

2 Likes

Thanks to you too @vishalvivekm. Cheers :tada:

1 Like