Automatically detect and block any .txt files (or any text files) containing what appears to be a plaintext password before they are committed to a GitHub repository. Provide clear warnings and remediation steps.
Even if you delete the file in the next commit, it is often too late. Git is a version control system; the file still exists in the repository's history. Anyone with a basic knowledge of Git commands can checkout the previous commit and retrieve the "deleted" file. github password txt