Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mikekistler
Copy link

Reasons for making this change

.env files are commonly used to hold "secrets" so it is important to ignore these files for git.

Links to documentation supporting these rule changes

Many of the other .gitignores here include an entry for .env files:

https://github.com/search?q=repo%3Agithub%2Fgitignore%20.env&type=code

If this is a new template

Link to application or project’s homepage: TODO

Merge and Approval Steps

  • Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and Approval from one of the maintainers

@mikekistler mikekistler requested a review from a team as a code owner October 19, 2025 18:30
@Copilot Copilot AI review requested due to automatic review settings October 19, 2025 18:30
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds .env file patterns to the Dotnet.gitignore template to prevent environment variable files from being committed to version control. This is a security best practice since .env files commonly contain sensitive configuration data like API keys and database credentials.

  • Adds .env* pattern to ignore all dotenv files and variants

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant