After reviewing a repository's history, a team leader finds an unauthorized access. What Git practice could have prevented this?

  • Branch protection
  • Code signing
  • Git hooks
  • Commit squashing
Branch protection can prevent unauthorized access by defining rules that restrict certain actions on specific branches. By enforcing access controls, the team leader could have prevented unauthorized changes and maintained a secure repository.
Add your answer
Loading...

Leave a comment

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