Remove files from Git's index without deleting the actual file
To remove a file from the Git version control system without actually removing the file on disc, use
git rm --cached filewhere
file
is the name of the file to be deleted. See
also How do I untrack a file?.
Copyright © Ben Bullock 2009-2024. All
rights reserved.
For comments, questions, and corrections, please email
Ben Bullock
(benkasminbullock@gmail.com).
/
Privacy /
Disclaimer