.gitignore not ignoring subdirectory, tried it all

This question already has an answer here:

  • Ignore files that have already been committed to a Git repository [duplicate] 21 answers

  • After you've added the new .gitignore to your working index, don't forget to remove any files that you don't want to track via git rm --cached . In your case, you'd want to use git rm --cached public/dist/bundle.js to stop tracking that file.

    链接地址: http://www.djcxy.com/p/23418.html

    上一篇: 如何修改旧的Git提交?

    下一篇: .gitignore不会忽略子目录,尝试一切