java - git ignore doesn't ignore already submitted files? -


this .gitignore file:

src/main/resources/* !src/main/resources/input 

in past submitted few files under resources folder.

now see files still monitored git (as changed) if under src/main/resources/foo1

how come git ignore don't hide these files git status?

gitignore governs addition of new files, files tracked continue tracked.

to remove them git keep them in filesystem, use --cached option of rm:

git rm -r --cached src/main/resources 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -