I'm following the office guidance to create and add a hook to the pre-commit check process. There are 3 files I need to create
.pre-commit-config.yaml
.pre-commit-hooks.yaml
theCheckFile.sh
The config file configs the hooks file which calls the theCheckFils.sh file to check my code style.
Q.1 Where should I put those files? I currently put them into my project folder, and edit the .gitignore file to ignore all of them, any better suggestion? or this is OK.
Q.2 The rev is needed in pre-commit-config.yaml file, where should I find this information, there is not version information from the code Repo I'm currently working with, can I just randomly create a number?