Why Would You Use A Pre Receive Hook In Your Remote Repository?

Why Would You Use A Pre Receive Hook In Your Remote Repository? Pre-receive hooks enforce rules for contributions before commits may be pushed to a repository. Pre-receive hooks run tests on code pushed to a repository to ensure contributions meet repository or organization policy. If the commit contents pass the tests, the push will be