227
edits
m (→SquirrelSQL) Tag: 2017 source edit |
(Explanations of how to install pre-commit hook) |
||
| Line 69: | Line 69: | ||
For this see page [[FAQ Get,update GIT project sources]]. | For this see page [[FAQ Get,update GIT project sources]]. | ||
== Git Hooks == | |||
=== Install Pre-commit git hook === | |||
Go to /dev/exemples/git 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. | |||
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. | |||
=[[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]] | ||