What does git commit -a do

Added -a, it can save you a step of git add when committing , but it is only effective for modifying and deleting files. New files still need git add, otherwise it will be untracked.

Guess you like

Origin blog.csdn.net/dyw3390199/article/details/112789415