Git · Junior · Question 46 of 75

What is the main idea of small, focused commits?

Explanation

Mixing a refactor, a bug fix and formatting in one commit makes review hard and turns a targeted revert into a big mess.

Further reading

Problem with a question

Git · Junior · question 46

Test yourself

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

Take this quiz