tags:

views:

44

answers:

1
GIT rm filename

remove the file from the index as well as from your working directory. Is it possible to remove the file only from the index ?

thank you, Alessandro DS

+4  A: 

Use git rm --cached:

--cached

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

Greg Hewgill
yes it works,thank you