culTest

    One of the 100 questions in this topic

    How much do you know about Git and Version Control?

    What is a hook in Git?

    Answers

    A tool for capturing branches
    A script that runs automatically in response to certain Git eventsCorrect
    A method for connecting remote repositories
    A special type of merge

    A hook in Git is a script that runs automatically in response to certain events in the Git workflow, such as commit, push, or receiving changes. Hooks can be used to enforce quality policies, automate tasks, or integrate with external systems.