---
title: "Comment by Jimmie Butler on \"Removing a .env file from Git history\" | Hashnode"
description: "What&#39;s the point in doing this? Regardless of what&#39;s in git, the credentials need revoked and git-ignored to prevent in the future. Removing from git hi"
url: "https://hashnode.com/posts/removing-a-env-file-from-git-history/618b5c6c468c06249afc5a33/comment/61938d0941b5ce67583af0f5"
---

[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)

[Jimmie Butler](https://hashnode.com/@jimmie)

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

What's the point in doing this? Regardless of what's in git, the credentials need revoked and git-ignored to prevent in the future. Removing from git history is some extra steps that doesn't really do anything.

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

[Nov 16, 2021](https://hashnode.com/posts/removing-a-env-file-from-git-history/618b5c6c468c06249afc5a33/comment/61938d0941b5ce67583af0f5#reply-61938e20095c0c66c77f5507)

Hey Jimmie,

I just like clean repo's. And like I said the env is more a demonstration of a common example.

It might have been another file you wish to remove from the history all together.
