As shown above,
/public/js
/public/css
/public/build
They are all still there and have not been ignored.
/resources/assets/bower
This 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?
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 futureYou guessed it right~ That’s it
git rm