To remove a directory and everything inside it from the index,
git rm --cached -r dir
The --cached switch makes git rm operate on the index only and not touch the working copy. The -r switch makes it recursive.
To remove a directory and everything inside it from the index,
git rm --cached -r dir
The --cached switch makes git rm operate on the index only and not touch the working copy. The -r switch makes it recursive.