Just like how we have a list of tags in files. We'd have a list of environments; which would just be a list of names and a path for each name to a .env.
In a Git Repository, with an existing .env a drop-down box would appear that would let you select which environment you wish to use. It would add or replace the .env file in the directory with a confirmation on replacing, the selected environment.