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
  • 2
  • 12

1 Answers1

14

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
  • 100,191
  • 27
  • 181
  • 221