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
Post a Comment