search

Home  >  Q&A  >  body text

.gitignore not taking effect?

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梦2791 days ago770

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-02 09:51:22

    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

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:51:22

    You guessed it right~ That’s it

    git rm

    reply
    0
  • Cancelreply