4

I have tried putting all kinds of crazyness into the gitignore file, I would like to ignore all files in the public/dist folder

public/dist/ public/ */public/dist/ **/public/dist

and all other kinda of variations.

this is what I see when I run git status, I want to ignore the bundle.js enter image description here

Sean Malter
  • 337
  • 3
  • 14

1 Answers1

15

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.

Makoto
  • 104,088
  • 27
  • 192
  • 230