本文介绍了什么是git status -uno in 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

我键入git help status并阅读但不了解如何获得与git status结果相同的结果

I type git help status and read but not understand how to get same as git status result

推荐答案

Git告诉您,由于您有许多未跟踪的文件,因此git status的结果比平时花费的时间更长.

Git is telling you that because you have many untracked files, the result of git status takes longer time than usual.

解决方法是使用git status -uno.从手册:

-u[<mode>]
--untracked-files[=<mode>]

显示未跟踪的文件.

mode参数是可选的(默认为all),用于指定未跟踪文件的处理.不使用-u时,默认设置为正常,即显示未跟踪的文件和目录.

The mode parameter is optional (defaults to all), and is used to specify the handling of untracked files; when -u is not used, the default is normal, i.e. show untracked files and directories.

可能的选项是:

no-不显示未跟踪的文件

no - Show no untracked files

normal-显示未跟踪的文件和目录

normal - Shows untracked files and directories

all-还显示未跟踪目录中的单个文件.

all - Also shows individual files in untracked directories.

这篇关于什么是git status -uno in git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 21:07