Skip to content

Why do certain file types that should be ignored, continue to say I need to do something about them? #23846

Closed Answered by airtower-luna
Rod-in-NM asked this question in New to GitHub
Discussion options

You must be logged in to vote
Rod-in-NM:

Files like .suo, .dll and .cache are all in the .gitignore file, so why aren’t they being ignored?

The files in your screenshot are marked as modified, so they have already been committed to the repository. Files that are part of the repository are never ignored, you have to delete them from the index first.

You could use git rm --cached on those files to delete them from the index but not the working tree. You might want to also clean them from the history (or start over, given that the repository is still very new).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants