---
title: "Discussion on \"How to Effectively Remove .env File from Git Repo/History\" | Hashnode"
description: "Discussion on \"How to Effectively Remove .env File from Git Repo/History\". The .env file is typically located in the root directory of a project and is not committed to version control systems, such as Git. Instead, it is used to store sensitive information, such as database credentials, API keys, and passwords, which shoul..."
url: "https://hashnode.com/posts/how-to-effectively-remove-env-file-from-git-repohistory/64c500f8f8e38c823b5076f4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Effectively Remove .env File from Git Repo/History](https://khaledbenyahya.hashnode.dev/how-to-effectively-remove-env-file-from-git-repohistory?utm_source=hashnode&utm_medium=feed)

The .env file is typically located in the root directory of a project and is not committed to version control systems, such as Git. Instead, it is used to store sensitive information, such as database credentials, API keys, and passwords, which shoul...

Jul 29, 2023 · 2 min read · khaledbenyahya.hashnode.dev  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#environment-variables](https://hashnode.com/tag/environment-variables)

## Written by

[Khaled Ben Yahya](https://hashnode.com/@khaledbenyahya)

@khaledbenyahya · Tunisia

  
[View profile](https://hashnode.com/@khaledbenyahya)

Software Developer

Devstuff

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
