跳过使用暂存区域

尽管使用暂存区域的方式能够精心准备要提交的细节,但有时候这么作略显繁琐。Git 提供了一个跳过使用暂存区域的方式,只要在提交的时候,给git commit 加上 -a选项,Git 就会自动把全部已经跟踪过的文件暂存起来一并提交,从而跳过 git add步骤:git $ git status # On branch master # # Changes not staged for commi
相关文章
相关标签/搜索