Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
#!/usr/bin/php | |
<?php | |
/** | |
* .git/hooks/pre-commit | |
* | |
* This pre-commit hooks will check for PHP error (lint), and make sure the code | |
* is PSR compliant. | |
* | |
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer) | |
* |
#!/usr/bin/ruby | |
# | |
# Remove history of files wich contains passwords and commit the last version of the file | |
# http://help.github.com/remove-sensitive-data/ | |
# | |
# How to use ? | |
# 1) Clone your repo | |
# 2) copy this file at the root of the repo | |
# 3) update glob_to_rewrite | |
# 4) run ruby git_rewrite.rb |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)