Skip to content

Instantly share code, notes, and snippets.

@ferrine
Created April 8, 2018 13:04
Show Gist options
  • Save ferrine/dbb9822d314ef14e3c9614c568d4dd68 to your computer and use it in GitHub Desktop.
Save ferrine/dbb9822d314ef14e3c9614c568d4dd68 to your computer and use it in GitHub Desktop.
pre commit hook that uses git secret
git secret hide && git add $(git secret list | awk -v ext=${SECRETS_EXTENSION:-secret} '{print $1"."ext}')
@ferrine
Copy link
Author

ferrine commented Apr 8, 2018

Adds encrypted files for commit stage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment