DEV Community

Discussion on: 11 Painful Git Interview Questions You Will Cry On

Collapse
 
subbramanil profile image
Subbu Lakshmanan

You are correct. From git-rm documentation

--cached
Use this option to unstage and remove paths only from the index. Working tree files, whether modified or not, will be left alone.