Remove file from Git index
12 March 2022 (Updated 12 March 2022)
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
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment