Today I learned that you can add
-a to a commit command to automatically stage files that have been modified and deleted.
Why write two lines:
git add . git commit -m "msg"
When you can write one:
git commit -m "msg" -a
NB: new files you have not told Git about are not affected.