git add --all 为啥不能添加空文件夹,这样设计的初衷是? 好多项目还得弄个假文件在空文件夹里面占位 这个算设计失误吧,见 https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F Currently the design of the git index (staging area) only permits files to be listed, and nobody competent
1.检查当前文件状态 -- git status git diff git diff --staged git status :我们可以使用 git status 来查看文件所处的状态.当运行 git status 之后,出现类似下面输出: $ git status On branch master nothing to commit, working directory clean 说明,现在的工作目录非常干净,换句话说,所有的已跟踪文件在上次提交之后都未被修改过. 如果你想要知道