How to solve the problem that gitignore cannot ignore files?
高洛峰2017-05-02 09:30:01
0
3
562
The line home/ was added to the .gitignore file, but git status still shows that there is a home/xxx file. Can't it be ignored? What is the reason? How to solve it?
It is recommended to check whether the .gitignore file and home are in the same folder? If not, it is recommended to put them together and try again.
.gitignore edited after a commit?
I have encountered this before, that is, after home is submitted, editing .gitignore does not work.
Just clear the cache, git rm -r --cache folder/