Git · Middle · Question 70 of 75

What is the risk of git add . before every commit?

Explanation

Review git status and git diff --staged before committing, and keep .gitignore up to date. git add -p makes you look at each change.

Further reading

Problem with a question

Git · Middle · question 70

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