You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make git treat a file as binary and don't show any diffs one unsets the diff attribute.
However, if I use something like this in .gitattributes
*.secret filter=git-crypt -diff
git-crypt status will complain every time
*** WARNING: diff=git-crypt attribute not set ***
How can the warning be avoided? Of course it's only a warning and one could ignore it. But routinely ignoring warnings is not a good idea, next time it might have been a serious one like
*** WARNING: staged/committed version is NOT ENCRYPTED! ***
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
To make
git
treat a file as binary and don't show any diffs one unsets the diff attribute.However, if I use something like this in
.gitattributes
git-crypt status
will complain every timeHow can the warning be avoided? Of course it's only a warning and one could ignore it. But routinely ignoring warnings is not a good idea, next time it might have been a serious one like
Beta Was this translation helpful? Give feedback.
All reactions