Remove files from Git Index
git rm -r --cached ./binLast updated
git rm -r --cached ./bingit rm -r --cached removes files from the Git index (the staging area) but leaves them on your filesystem.
Think of it as: βStop tracking these files, but donβt delete them from disk.β
Breaking it down:
rm β remove
-r β recursively (folders too)
--cached β remove only from the index, not from your working directory
So after running it, the files still exist locally, but Git treats them as untracked.
Last updated