Answers for "git ignore .env.local"

1

git ignore .env files not working

If you have already added the files to be tracked,
you need to remove them from tracking:

git rm env.local --cached
git rm env.staging --cached
git commit -m "Stopped tracking env.local, and env.staging"
Posted by: Guest on May-11-2021
2

.env in gitignore

git rm .env --cached
git commit -m "Stopped tracking .env File"
Posted by: Guest on April-30-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language