GitHook
Last updated
Was this helpful?
Last updated
Was this helpful?
We are going to use the git pre-commit
to make sure the code gets prettified before committing it.
can prevent bad
git commit
,git push
and more 🐶 woof!
Add the following to the root package.json
Make sure husky is install
Add it to postinstall
to automate the process:
When we commit, we should now see a message similar to this one:
branch available on GitHub.