Git: How to remove file from index without deleting files from any repository
Posted
by Fletcher Moore
on Stack Overflow
See other posts from Stack Overflow
or by Fletcher Moore
Published on 2010-04-09T01:52:07Z
Indexed on
2010/04/09
2:03 UTC
Read the original article
Hit count: 289
git
|version-control
When you use
git rm --cached myfile
it doesn't delete from the local filesystem, which is my goal. But once you commit the changes, push them to a central repository, then pull them into another yet another repository it still deletes the file from that system.
Is there a way to just remove the file from the index without deleting it from any filesystem?
© Stack Overflow or respective owner