How to remove the tracked file that was added in .gitignore

Posted on March 31, 2022

To stop tracking a file you need to remove it from the index.
Using the below command you can remove the file from the index

git rm --cached fileName

If you want to remove the entire folder using the below command

git rm -r --cached folderName
to join this conversation on Samprix.Already have an account? Sign in to comment
SPONSORS