---
title: "Comment by Ayodele Samuel Adebayo on \"Removing a .env file from Git history\" | Hashnode"
description: "Thanks for sharing this. Will be handy someday 😀"
url: "https://hashnode.com/posts/removing-a-env-file-from-git-history/618b5c6c468c06249afc5a33/comment/619121a083e4212d6e579b6e"
---

[Discussion](https://hashnode.com/posts/removing-a-env-file-from-git-history/618b5c6c468c06249afc5a33)

Comment [Removing a .env file from Git history](https://hashnode.com/posts/removing-a-env-file-from-git-history/618b5c6c468c06249afc5a33)

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Nov 14, 2021](https://hashnode.com/posts/removing-a-env-file-from-git-history/618b5c6c468c06249afc5a33/comment/619121a083e4212d6e579b6e)

Thanks for sharing this. Will be handy someday 😀

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 14, 2021](https://hashnode.com/posts/removing-a-env-file-from-git-history/618b5c6c468c06249afc5a33/comment/619121a083e4212d6e579b6e#reply-61914dc5770afc563f6678da)

Haha, I hope you never have to use it. But that day you do, it's here for you 👋

[Ayodele Samuel Adebayo](https://hashnode.com/@unclebigbay)

[Nov 14, 2021](https://hashnode.com/posts/removing-a-env-file-from-git-history/618b5c6c468c06249afc5a33/comment/619121a083e4212d6e579b6e#reply-61917bc2770afc563f667b27)

😂 [Chris Bongers](https://hashnode.com/@dailydevtips).

I've made the mistake once, while I was writing an article and pushing the code to GitHub, I revoked the Key but didn't know about this solution.

This will come in handy when someone else asked me or a colleague makes the mistake.

It's just so nice to know this things exist on your blog 😂
