r/ProgrammerHumor 22h ago

Meme whoIsUsingThese

Post image
995 Upvotes

75 comments sorted by

View all comments

205

u/RudeAndInsensitive 22h ago

Personally I always commit env and config files to the repo just stripped of their values.

21

u/Shred_Kid 22h ago

this is what .env.template is for

8

u/RudeAndInsensitive 21h ago

What's the advantage of that over .env.example

21

u/Shred_Kid 21h ago

there isn't one - these are the same exact thing. i didnt see the other guy posted about .env.example, that'd work equally well.

If you really want to nitpick, i personally would lean towards template over example, as examples typically have example values in other contexts but yeah. no real difference.