git add和commit一起操作 合并操作

执行git commit -am “提交描述”即可将add和commit操作合并, 不需要先git add file 再 git commit -m “提交描述” 了

参数作用: Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected.

参数作用 Use the given as the commit message. If multiple -m options are given, their values are concatenated as separate paragraphs.