Git: ignore tracked files

Ignore already tracked files in git When using git, sometimes a file is added by mistake or for demo purpose, which may be removed or not tracked later on if changed. Normally we just add an entry in .gitignore, but if the file is already managed, it still will be tracked. Remove a managed file If we fully want to remove the file from being managed, we can remove it from the cache. [Mehr]