Skip to content

Remove tracking from a file that was added in .gitignore

You may pushed a commit file the basic data for a file to your repository, but no longer need or want to do that. Git still tracks that file though, so you need to remove it from the index of tracked Git files. You can do this with the git rm command:

git rm --cached <file>


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.