During a security audit, it's found that commit verification is not enforced. What Git feature can enhance the security of commits in this scenario?

  • Enable and use Git LFS (Large File Storage) to secure large files and prevent accidental commits.
  • Utilize Git hooks, specifically the pre-commit hook, to enforce verification before each commit.
  • Enable and configure signed commits using GPG keys.
  • Use Git tags to label and verify important commits, ensuring they are not tampered with.
Option 3 suggests using GPG key-based commit verification, which adds a layer of security by ensuring the authenticity of commits. Other options may address different aspects of repository management but do not specifically enhance commit security through verification.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *