-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added more file to gitignore #1282
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no strong opinions on the overall idea because I don't have lots of these kicking around, but I'm gently in favour.
.gitignore
Outdated
.env.* | ||
!.env.example | ||
!.env.homestead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.env.* | |
!.env.example | |
!.env.homestead | |
.env* |
Files manually added to the index aren't affected by .gitignore (and still show as changed when they're updated), so I'd just ignore all of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing against.
Kudos, SonarCloud Quality Gate passed! |
For developing and testing my number of
.env
-files has increased significantly over the last month. I use these different.env
-files as a symlink target and I iterate over them to check the effect of changes for different setups. I always fear to accidentally commit them some day. So I decided it has been time to exclude them.If anybody has a better idea, I am open to ideas. I don't mind if this PR is rejected.
FYI, my collection of
.env
-files look like that.env.debug.mysql.empty
.env.debug.mysql.geeklihui
.env.debug.mysql.ildyria
.env.debug.mysql.own
.env.production.mysql.empty
.env.production.mysql.geeklihui
.env.production.mysql.ildyria
.env.production.mysql.own
.env.testing.mysql.empty
.env.debug.psql.empty
.env.debug.psql.own
.env.production.psql.empty
.env.production.psql.own
.env.testing.psql.empty
.env.debug.sqlite.empty
.env.production.sqlite.empty
.env.testing.sqlite.empty