arrow_back Back to Notebook
git
git
January 10, 2019

How to remove a file from a Git Repo

To remove a file from a git repository you need to remove the cached version of it.

Removing a cached git file example

git rm **--cached** filename

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch