how to add .env file in gitignore code example
Example 1: .env in gitignore
git rm .env --cached
git commit -m "Stopped tracking .env File"
Example 2: git won't ignore .env
git rm env.local --cached
git rm env.staging --cached
git commit -m "Stopped tracking env.local, and env.staging"