31,003
edits
(Explanations of how to install pre-commit hook) |
Tag: 2017 source edit |
||
| Line 73: | Line 73: | ||
=== Install Pre-commit git hook === | === Install Pre-commit git hook === | ||
Go to /dev/ | Go to '''/dev/setup/git/hooks''' of your local repository, copy the pre-commit file in '''.git/hooks''' folder of your local repository and make it executable. | ||
If not install, install phpcs. | If not install, install phpcs. | ||
| Line 79: | Line 79: | ||
Next, you need to edit pre-commit file in .git/hooks to modify the lines 40 and 48 of the file to the path of your phpcs and phpcbf install. | Next, you need to edit pre-commit file in .git/hooks to modify the lines 40 and 48 of the file to the path of your phpcs and phpcbf install. | ||
Once installed, the hook will start on your next commit to re-format your code. | Once installed, the hook will start on your next commit to re-format your code. | ||
=[[File:Computer.png]] Optional= | =[[File:Computer.png]] Optional= | ||
There are a lot of more components you can install to get more technologies support: | There are a lot of more components you can install to get more technologies support: | ||
[[Environment and development tools - Optionnal components]] | [[Environment and development tools - Optionnal components]] | ||