0

I’m having trouble in visual studio where it sees .cache files as changes.

I added .cache extensions to my gitignore file, but no luck.

Example file path : obj/Debug/netcoreapp2.2/win7-x64/MyProject.assets.cache

Hein
  • 111
  • 3
  • 9
  • 1
    Does this answer your question? [How to remove files that are listed in the .gitignore but still on the repository?](https://stackoverflow.com/questions/13541615/how-to-remove-files-that-are-listed-in-the-gitignore-but-still-on-the-repositor) – Cleptus Apr 14 '20 at 08:35

1 Answers1

0

According to this answer you can do the following commands:

  • First commit any code changes, and then, run this command: git rm -r --cached .

  • This removes any changed files from staging area, then just run: git add .

  • Commit it: git commit -m "Your commit"