Interview question

This question is step 6 of the course “Git: first commits”

Why git add exists

easy~4 min

Why does git have two steps — git add and git commit? Why can't you just run git commit, and what is the index? Give an example of when this is useful.

Just like in an interview: answer in your own words, and the AI will mark which key points you covered. To pass, cover more than half of them.

Loading…