I have written a line
.env
in my .gitgnore file.but still it is not being ignored while the push. My .gitignore file is in root directory of project folder.
after adding file name in .gitignore, you have to run:
git rm -f .env
It will never appear after in git status
, no matter what modification you do in it.
A SUGGESTION, If you do not have good knowledge of unix commands and git, please save your .env file somewhere before playing with it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With