Question: Why would you use a pre-receive hook in your remote repository?

  1. You wouldn't, you would use it in the local repository
  2. To execute a script when a remote receives a push that is triggered before any refs are updated
  3. To fire a script after updates are made to the remote repository
  4. To debug all commit tags and release versions

Answer: The correct answer of the above question is Option B:To execute a script when a remote receives a push that is triggered before any refs are updated