Answer the question
In order to leave comments, you need to log in
Add files to pre-commit?
Hello, please tell me how to add a file in the pre-commit hook.
In file ./.git/hooks/pre-commit
#!/bin/sh
openssl aes-256-cbc -k "1" -in .env -out .env.enc
git add .env.enc
$ git commit -am 'a'
git commit -am 'a'
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
On branch master
Your branch is ahead of 'origin/master' by 35 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question