2

I added my project to gitlab with an inital commit. I realize now I dont need to tack such folders as node_modules, build, dist so I added them to a gitignore file. The issue is they are in the gitlab online directory still. Can I just delete them right from the application? Or will this mess anything up.

Packy
  • 3,405
  • 9
  • 50
  • 87

1 Answers1

1

Use

git rm --cached <folder>/*

In order to remove those folders from git but leave it in the local folder.

yorammi
  • 6,272
  • 1
  • 28
  • 34