Is it possible to run a proprietary script (e.g. for replacing passwords by generic values using sed
) upon both git commit
and git update
?
The effect should be that:
- actual passwords e.g. in (commited) configuration files are not stored on the Git server
- files show up as unmodified despite passwords differ between the latest and commited version (with actual vs. generic password respectively)
I image this is possible with (local) Git hooks, if at all. So there is a hook for pre-commit
that may trigger the script, but how about pre-update
, or similar?