Skip to content

Instantly share code, notes, and snippets.

@jiglesiasabio
Forked from havvg/.gitconfig
Created May 25, 2017 15:12
Show Gist options
  • Save jiglesiasabio/15d9560d95c60d6655aa624b996781d2 to your computer and use it in GitHub Desktop.
Save jiglesiasabio/15d9560d95c60d6655aa624b996781d2 to your computer and use it in GitHub Desktop.
apply PHP-CS-Fixer on all changed files in the staging area
[alias]
fix-staged = "!git diff-index --cached --name-status HEAD | grep -ve '^D' | cut -f2 | xargs -n1 php-cs-fixer fix"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment