Go to the root of the project and run the following command:
bash <(curl -s https://raw.githubusercontent.com/shftco/shft-git-config/main/pre-commit/script.sh)
That's it! You can now use the pre-commit hook for your project with using git-conventional-commit.