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. 
            Asked
            
        
        
            Active
            
        
            Viewed 1,768 times
        
    2
            
            
         
    
    
        Packy
        
- 3,405
- 9
- 50
- 87
- 
                    1Possible duplicate of [Remove directory from remote repository after adding them to .gitignore](http://stackoverflow.com/questions/7927230/remove-directory-from-remote-repository-after-adding-them-to-gitignore) – alexander.polomodov Apr 01 '16 at 21:05
- 
                    @alexander.polomodov yep that answered it. Should I remove this question or just leave it? – Packy Apr 01 '16 at 21:07
- 
                    It will be closed as duplicate later. Do not worry about it – alexander.polomodov Apr 01 '16 at 21:08
1 Answers
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