untracked files not shown in git status

后端 未结 7 1541
感动是毒
感动是毒 2020-12-05 13:35

I have a project with the following folder structure:

All the project files are in base_fldr folder. Also I have a few folders inside base_fldr called sub_fldr1 and

7条回答
  •  不知归路
    2020-12-05 14:00

    In order to debug an issue like this, see if your .gitignore file is the culprit by observing the following two outputs

    See https://git-scm.com/docs/git-ls-files

    1. git ls-files --other --directory --exclude-standard

    This will show all untracked files, while obeying the .gitignore file.

    1. git ls-files --other --directory

    This will show all untracked files, without obeying the .gitignore file.

    Whichever files are present in output of 2, but are not present in output of 1, are not shown in untracked because of some flag in your .gitignore file

提交回复
热议问题