DEV Community

Cover image for How to Remove Sensitive Data You Accidentally Uploaded To Github
Thuwarakesh Murallie
Thuwarakesh Murallie

Posted on • Edited on

How to Remove Sensitive Data You Accidentally Uploaded To Github

You should upload all your project files to GitHub or Bitbucket.

Some secrets need to stay secret.

A good example is environment files, where we store our DB credentials and API keys.

You can use the gitignore file to disallow them from entering the cloud. But if you've accidentally shared them already, adding them on gitignore later won't help.

Your secret may be on all the branches and commits history. Your secrets are on the internet!

Here's how to remove them permanently and stay safe.

How to Remove Sensitive Data You Accidentally Uploaded To Github

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay