Why can't you commit a .env file?
"You can't commit a .env file to Git" is a sentence we've all heard. Most people accepted it and went on with their lives, using other tools to share environment variables.But the question we should ask is: why can't I commit a .env file to Git?The honest answer isn't that it's bad practice. It's that Git has no permission system below the repository level. It's all or nothing. You see...