can git hook used replace passwords before staging, adding, or pushing?
i want passwords replaced templates before committing or pushing.
for instance, prefix plain texts password 'pwdexlude_password' , hook replaces <>, during deployment phase script can template, lookup in database password, , substitute template production password.
is available or possible git?
i take different approach, keep passwords in configuration file that's not under version control , have application load them file when runs. deploy script needs ensure such file exists, , each developer can have own passwords development , testing.
if really want ask, think in pre-commit
hook extracts staged versions of files passwords in them, rewrites them, , stages rewritten version, making sure not affect working copy. however, seems bad idea me number of reasons.
Comments
Post a Comment