Working Tree, Index and Repository
You edited app.py and ran git add app.py. Then you edited app.py again. What will git commit (without -a) record?
app.py
git add app.py
git commit
-a
Part of Git Essentials. Next step: Your First Repository and Commit
Choose one answer
Both edits, because git commit re-reads every tracked file from the working tree.
Only the first edit: commit records the index, and the second edit is still unstaged.
Only the second edit, because the newer working-tree copy replaces the staged one.
Nothing: Git refuses to commit a file that changed after it was staged.