I want to be able to diff the changes to my encrypted config/credentials.yml.enc
.
git diff
alone shows the difference to the encrypted file contents. I want to see the plaintext changes.
How can I get a human readable diff of the config/credentials.yml.enc
file?
This will work if you use rails encrypted:show
instead of rails credentials:show
as it takes a file as an argument.
For a global configuration add to your .gitconfig
[diff "enc"]
textconv = rails encrypted:show
cachetextconv = false
and then in ~/.config/git/attributes
*.yml.enc diff=enc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With