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
The main goal here is to avoid PII to be committed to the repo. We don't care about local copies. Sure, upon detecting lines with potential PII, a pre-commit hook can trigger a failure. It will not allow a commit until the user manually removes the offending lines and tries to re-commit (hook will run again, and so on).
Perhaps https://git-scm.com/docs/gitattributes#_filter could be a better idea, as it achieves the goal, while still allowing the user to keep their own copy of a file with PII still in it. Only the repo, and thus anyone who checks out will have a version without PII.
No description provided.
The text was updated successfully, but these errors were encountered: