Skip to content

Instantly share code, notes, and snippets.

@evilkost
Created January 9, 2019 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilkost/e9889e39752a41b0215a7ce53aa5ab4c to your computer and use it in GitHub Desktop.
Save evilkost/e9889e39752a41b0215a7ce53aa5ab4c to your computer and use it in GitHub Desktop.
pre-commit run --files `git diff --name-only HEAD~ | tr '\r\n' ' '`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment