Git · Middle · Question 70 of 75
What is the risk of git add . before every commit?
- 1It stages the files in the wrong order
- 2It slows Git down on large repositories
- ✓Correct answer: Committing unrelated or secret files by accident
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.