At least you can put .env in the global gitignore. I haven’t committed DS_Store in 15 years because of it - its secrets will die with me.

sorry.. global gitignore.. what have i been doing..