.gitignore not ignoring subdirectory, tried it all
This question already has an answer here:
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.
上一篇: 如何修改旧的Git提交?