git ignore .env files not working
you must need to remove .env file from cached and push:
Simply Run This Command.
git rm .env --cached
git commit -m "Stopped tracking .env File"
Now you should be able to clone your branch without those files being tracked.