Customizing the __________ Hook can help enforce coding standards before code is pushed.
- Pre-push
- Pre-receive
- Post-commit
- Post-receive
The correct option is Pre-receive. This hook is executed on the server when you receive a push. Customizing it allows you to enforce coding standards before accepting the pushed code.
Loading...
Related Quiz
- In the context of enterprise, what is a key benefit of implementing Git LFS (Large File Storage)?
- How do you synchronize your local repository with changes from a remote repository?
- After reviewing a repository's history, a team leader finds an unauthorized access. What Git practice could have prevented this?
- When a merge conflict occurs, what does Git use to mark the conflicted area in the files?
- The git _______ command creates a new commit that undoes all of the changes made in a specified commit.