当我输入git status
时,有消息说
It took 2.39 seconds to enumerate untracked files. 'status -uno'
may speed it up, but you have to be careful not to forget to add
new files yourself (see 'git help status').
nothing to commit, working tree clean
i类型git help status
并阅读但不明白如何与git status
结果相同
git告诉您,因为您有许多未跟踪的文件,因此git status
的结果比平常更长。
修复程序是使用git status -uno
。从手册中:
-u[<mode>] --untracked-files[=<mode>]
显示未跟踪的文件。
模式参数是可选的(默认为所有),用于指定未跟踪文件的处理;当不使用
-u
时,默认值是正常的,即显示未跟踪的文件和目录。可能的选项是:
no
-显示未跟踪的文件
normal
-显示未跟踪的文件和目录
all
-还以未跟踪的目录显示单个文件。