Git clean删除的文件未显示为Git状态

Git clean删除的文件未显示为Git状态,git,git-clean,Git,Git Clean,首先,我运行git状态 [user@dev config]$ git status # On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # app1-core/ # app1/local.json.hold nothing added to commit but untracked files pre

首先,我运行git状态

[user@dev config]$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       app1-core/
#       app1/local.json.hold
nothing added to commit but untracked files present (use "git add" to track)

我想知道为什么它删除了这些在上面的git status命令中没有显示为未跟踪的附加文件。

因为
-x
的意思是:“不要使用从.gitignore读取的标准忽略规则”

是否
git clean-nxfd
是显示这些文件的
git status
的唯一完整替代方案?
[user@dev config]$ git clean -xfd
Removing app2/local.json
Removing app3/local.json
Removing app4/local.json
Removing app5/local.json
Removing app6/local.json
Removing app1-core/
Removing app1/local.json.hold