sajad torkamani
git rm --cached <file>

This will unstage and remove the files from the index only. This is useful when you no longer want to include a file in your Git repo but want it to stay in your working tree.

Sources

Tagged: Git

Leave a comment

Your email address will not be published. Required fields are marked *