添加后,git仍未跟踪

sla*_*rIQ 6 git version-control commit add

每次我执行git状态时,此文件夹都显示为未跟踪.

$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       src/error/
nothing added to commit but untracked files present (use "git add" to track)
Run Code Online (Sandbox Code Playgroud)

即使这样做git add .,git commit -asrc/error处的文件夹仍然显示为未跟踪.每次只有此文件夹不断提出问题时,才会提交其他未分段文件.git也没有报告任何错误.这可能是什么问题?

sla*_*rIQ 6

我发现问题和解决方案是发生了什么:

第一个src /错误被称为src/Error当我在本地改变了case的情况下,foldername被更改但是在git中它仍然被提交为src/Error.Windows不区分大小写,所以我所做的是删除文件夹提交并使用正确的大小写再次添加它.