Git · Middle · Question 19 of 75

What do protected branches on GitHub or GitLab typically enforce?

Explanation

They can also block force-pushes and deletions, and require linear history or signed commits. It's the server-side guarantee that hooks alone can't give.

Further reading

Problem with a question

Git · Middle · question 19

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz