-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: remove .env from index and create .env-dist #983
Comments
👋 Hi @psyray, |
I think we can fix this ourselves. If you create a PR, I'll merge it into my fork. |
What's the right way to remove from index but not delete it for user at git pull ? |
Hmm, not sure actually, never experimented with that before. But you do have a point: you want to pull new changes to the |
Yes, more complicated than it looks. |
Is there an existing feature or issue for this?
Expected feature
@yogeshojha You should remove .env from git index, and create a .env template called, for example, .env-dist
Because you've add the .env to .gitignore but as the file is in the git index the ignore does not work.
By adding a file .env-dist, user can rename it to .env, change values and this does not trigger a git change
What do you think of this ?
Alternative solutions
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: