How do i remove a git file only from the index, not the actual file?
-
Man page to git rm: https://www.lightnetics.com/post/1696
--cached Use this option to unstage and remove paths only from the index. Working tree files, whether modified or not, will be left alone.
$ git rm --cached <filename>
© Lightnetics 2024