Git · Middle · Question 21 of 75

What does git add -p let you do?

Explanation

Interactive staging lets you split unrelated changes in one file into separate commits, keeping history focused.

Further reading

Problem with a question

Git · Middle · question 21

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