2017-09-04 215 views
-5

有人可以说明git commit -am和一些使用git commit -m之间的区别,但两者都有效,但我不知道有什么区别。git commit -am和git之间有什么区别-m

+1

的组合不能你读[搞笑手册(https://git-scm.com/docs/git-commit)? – 2017-09-04 10:56:31

+0

'-a':“*告诉命令自动对已被修改和删除的文件进行分段,但是没有告知Git的新文件不受影响。*” – Maroun

+1

可能的重复[为什么我必须使用git提交-a“而不仅仅是”git commit“?](https://stackoverflow.com/questions/14459927/why-do-i-have-to-use-git-commit-a-rather-than-just- git-commit) – 2017-09-04 10:59:16

回答

0

Git commit -am在提交前添加所有文件的阶段。

1
git commit -am 

// add all files staged for the commit 
git commit -a 

// commit with the message 
git commit -m "" 
相关问题