0

i using GIT for my project, but i've a problem.

When I have no pending changes and I make a compilation of the project from visual studio, and then i execute "git status command" it generates all these changes for me

enter image description here

in my ignore file, i added the extensions, but git doesn't consider them.

enter image description here

Why does this happen and how can I solve it?

phd
  • 69,888
  • 11
  • 97
  • 133
Alonso Contreras
  • 407
  • 1
  • 10
  • 22
  • 1
    Does this answer your question? [How to make Git "forget" about a file that was tracked but is now in .gitignore?](https://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore) – phd Apr 14 '20 at 20:20

1 Answers1

1

The problem is that these files are already being tracked by git. Run the following:

git rm -r --cached . git add . git commit -m "Fixed .gitignore"

simon-pearson
  • 1,359
  • 5
  • 9