.gitignore not taking effect?
过去多啦不再A梦
过去多啦不再A梦 2017-05-02 09:49:22
0
2
774

As shown above,

/public/js
/public/css
/public/build

They are all still there and have not been ignored.

/resources/assets/bowerThis folder can be correctly ignored. why?

Guess the reason. This rule was added later. Before this, /public/js, /public/css, and /public/build were all submitted.

Is that so?

What should we do if this is the case?

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
刘奇

Yes, this is because it has been submitted before. The solution is to select .gitignore中这三个目录去掉,然后删除这三个目录后再提交,push,最后再把这三个目录添加到.gitignore first, so that it will be excluded in the future

我想大声告诉你

You guessed it right~ That’s it

git rm

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