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?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(3)
我想大声告诉你

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/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template