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
  • 82,685
  • 13
  • 120
  • 165
Alonso Contreras
  • 605
  • 2
  • 12
  • 29
  • 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,601
  • 8
  • 10