什么是git状态 - git中的uno

  • 本文关键字:git 中的 uno 状态 git
  • 更新时间 :
  • 英文 :


当我输入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-还以未跟踪的目录显示单个文件。

最新更新