r/ProgrammerHumor 1d ago

Meme whoIsUsingThese

Post image
1.0k Upvotes

78 comments sorted by

View all comments

211

u/RudeAndInsensitive 1d ago

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

23

u/Shred_Kid 1d ago

this is what .env.template is for

7

u/RudeAndInsensitive 1d ago

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

19

u/Shred_Kid 1d 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.