✅ VS seems to be ignore .gitignore when adding files to a repository

I was browsing files inside my project's repository Best-Chat (on GitHub). While in there, I noticed files that should've been excluded. These include the .vs folder and all bin and obj folder. Any ideas what's going on?
5 Replies
MaybeJon
MaybeJon8mo ago
I'm assuming they weren't initially in .gitignore and were just added in? You'll have to remove the cached folders
Will Pittenger
Will Pittenger8mo ago
I think VS is supposed to assume a .gitignore specific to VS.
Angius
Angius8mo ago
git rm -r --cached -> git add .
MaybeJon
MaybeJon8mo ago
^ Sorry I am on mobile and couldn't remember the command on the top of my head haha
Will Pittenger
Will Pittenger8mo ago
I'm thinking if VS did require a .gitignore, it should've created it when I added the solution to Git. Maybe even when the solution was first created. Well, I did some things that included the git rm -r --cached (though I had to add a pathspec). But I lost all the unchecked in changes I had waiting as I had also deleted them from the GitHub website not understanding after I ran the command, I could do a push. Fortunately, I already have recoded most of what I lost.
Want results from more Discord servers?
Add your server
More Posts