-
Clone / download this repo contents
-
Copy
configandpre-commitfiles into hooks folders located inside your local git clones
eg- If I have cloned jbolo git repo at location /home/manoj/GIT/jbolo/ then hook folder is located at
/home/manoj/GIT/jbolo/.git/hooks. Copy files into .git/hooks folder
- Give executable permission to
pre-commitfile
That's it - you will start seeing php compilation & phpcs errors on every git commit itself.
-
Clone / download this repo contents
-
Copy
commit-msgfile into hooks folders located inside your local git clones
eg- If I have cloned jbolo git repo at location /home/manoj/GIT/jbolo/ then hook folder is located at
/home/manoj/GIT/jbolo/.git/hooks. Copy file into .git/hooks folder
- Give executable permission to
commit-msgfile
That's it - you will start seeing invalid commit msg errors if you don't follow commit message format.