Closed arisgk closed 5 years ago
OS: Ubuntu 18.04.1 LTS
.env
git status
Changes to .env (or any other gitignored files) should be ignored
Change to .env is not ignored
According to the answer with the most upvotes in this question, something like:
git rm -r --cached . git add . git commit -m "Fixes untracked files"
will fix the issue
Thanks, @arisgk! Not sure how long it would have taken me to track this down, so I appreciate the link. Just followed the steps outlined.
Environment
OS: Ubuntu 18.04.1 LTS
Steps to reproduce
.env
file in project root (which is gitignored)git status
to see if the change was tracked by gitExpected result
Changes to
.env
(or any other gitignored files) should be ignoredActual result
Change to
.env
is not ignoredPotential solution
According to the answer with the most upvotes in this question, something like:
will fix the issue