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.
Loading...
Related Quiz
- How does a Git Subtree differ from a Git Submodule?
- Merging branches in Git typically involves the _______ branch into the current branch.
- What are the potential drawbacks of using a centralized workflow in a large, distributed team?
- When migrating to Git, it's crucial to convert the old VCS __________ into Git commits.
- When resolving a merge conflict, changes from the incoming branch are marked with <<<<<<< followed by the branch name or a unique ________.