FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
How to Remove Sensitive Data from Your Git History (For Real This Time)
How-ToSystems

How to Remove Sensitive Data from Your Git History (For Real This Time)

via Dev.toAlan West9h ago

You deleted the file. You committed the deletion. You pushed. You're safe now, right? Nope. That API key, that .env file, that internal config with your database credentials — it's all still there, sitting comfortably in your git history, waiting for anyone with git log and five minutes of curiosity. I learned this the hard way about four years ago when a colleague pinged me to let me know our staging database password was visible in a public repo. I'd removed the file three months earlier. Didn't matter. Git remembers everything. Why Deleting a File Doesn't Actually Delete It Git is a content-addressable filesystem. Every commit is a snapshot of your entire project at that point in time. When you git rm secrets.env and commit, you're creating a new snapshot without that file — but every previous snapshot still has it. Anyone can see it: # Find all commits that touched a specific file, even deleted ones git log --all --full-history -- path/to/secrets.env # Show the contents of that fil

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles

Learning to Generate Images of Outdoor Scenes from Attributes and SemanticLayouts
How-To

Learning to Generate Images of Outdoor Scenes from Attributes and SemanticLayouts

Dev.to • 1h ago

Building DNS query tool from scratch using C
How-To

Building DNS query tool from scratch using C

Reddit Programming • 2d ago

How to build .NET obfuscator - Part I
How-To

How to build .NET obfuscator - Part I

Reddit Programming • 2d ago

How to Use Traceroute and MTR to Diagnose Network Issues
How-To

How to Use Traceroute and MTR to Diagnose Network Issues

DigitalOcean Tutorials • 1w ago

apt-key Deprecation: Add Repositories with GPG on Ubuntu
How-To

apt-key Deprecation: Add Repositories with GPG on Ubuntu

DigitalOcean Tutorials • 1w ago

Discover More Articles