How To Remove Committed Files From Git Version Control

Do it without getting rid of files which shouldn’t be pushed to the repository

Ali Kamalizade
Nov 1 · 2 min read
Photo by Yancy Min on Unsplash

Most of us have probably committed something to a repository, maybe even a public one, that we don’t want: credentials, build files, temporary files. Potential issues:

  • Published sensitive data (e.g., environment…

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Ali Kamalizade

Written by

Software Engineer @leanix_net. Co-founder of Sedeo with a passion for web and mobile development. I write about topics I’m interested in 🚀

Better Programming

Advice for programmers.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade