What is the effect of git commit without the -a option?
问题 What is the difference between these two commands? git commit -m "added a new page" and git commit -a -m "added a new page" I know that the -a option will stage files that have been modified and deleted, but then what does running it without the -a mean? 回答1: You have to explicitly stage changes for commitment by using git add or git rm . If you use the -a flag when doing a commit, git will automatically stage any modified and removed files without you having to explicitly stage them using