Sunday, May 22, 2016

Git: How to remove file from index without deleting files from any repository

We can use below command
git rm -r --cached [folder name]
this will remove folder also contained file from git but not remove from physical drive.