Insights & Ideas: My Blog

From Concept to Creation: A Developer’s Notebook

How to delete a secret file from past github commits

Hello devs! Sometimes we make commits that contain confidential information or files(eg .env or any) that shouldn’t have been committed. But by any chance if you have committed in past, then this article is for you. In this guide, we’ll explore how to remove files from Git history without affecting other files. I’ve successfully used this process in my project.

react logo

Nabin Yadav

Published on

September 16, 2024