git local cache deletion

Git
Published

March 7, 2024

When .gitignore doesn’t work, after removing local git cache, it works properly.

git rm --cached -r .

This command means to remove caches in this working directory recursively. If you want to remove caches of a specific directory selectively, then you can specify the directory the position of .

Photo by Gabriel Heinzer on Unsplash