我没有 .gitignore 文件,但是目录和文件被忽略了

I dont have a .gitignore file but dirs and files are being ignored

我搜索了我的邮箱。我没有全局或本地 .gitignore 文件。目录和文件不在 .git/info/excludes

但如果我 git status --ignored 我的目录列在那里。即使我更改了目录名称,它们仍然在被忽略的项目列表中。

任何想法都会很方便

编辑

# On branch master
# Initial commit.
#
# Ignored files:
#   (use "git add -f <file>..." to include in what will be committed)
#
#       dir1/
#       dir2/
nothing to commit (create/copy files and use "git add" to track)

是的,目录 1 和 2 中有文件和文件夹

我试过了git check-ignore dir1没有返回输出

所以我仍然不知道出了什么问题或问题是什么,但我做了 git clean 并且似乎已经解决了问题。感谢大家的建议和意见。