Skip to content

devdrops/php-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-pre-commit

Git pre-commit hook file for PHP projects

Shellcheck status

How to Use?

  1. git clone this repository.
  2. Copy the pre-commit file to your project's Git hooks folder. Make sure that the pre-commit file is executable.
  3. Now copy the config.dist file to your Git hooks folder, and rename it to config.
  4. Edit the config file with your preferences.

Kudos for Johnathan Pulos for his amazing Gist!