Why is git ignoring my changed file?

前端 未结 9 1139
南旧
南旧 2021-02-04 05:22

I make an arbitrary change to a file within my git working directory.

git status does not recognized that the file has changed.

git add /path

9条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 06:04

    Check each parent directory from the file in question to the project root for .gitignore files.

    Some projects use several .gitignore files, each in its own directory, instead of a single .gitignore in the root.

提交回复
热议问题