本文介绍了Git没有检测到文件,也没有在.gitignore中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个名为style.css的文件,git没有检测到它。如果我删除它,它也不会检测到它,但它会检测我是否更改了文件的名称。但我需要这个名字。
该文件不在.gitignore文件中。这让我疯狂了!
I have a file called "style.css" and git is not detecting it. It doesn't detect it if I delete it either, but it does detect if I change the name of the file. But I need it with that name.The file is not in the .gitignore file. This is driving me crazy!
我希望有一些帮助。
I would appreciate some help.
推荐答案
该文件也可以在 .git / info / exclude 中列出,并且有 core.excludesfile 选项看,也是。
The file could also be listed in .git/info/exclude, and there’s the option core.excludesfile to watch, too.
这篇关于Git没有检测到文件,也没有在.gitignore中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!