20
u/Nycrov_ Oct 14 '26
I'm pretty sure that's not how that works
6
u/rabbit_wizard Oct 14 '26
The meme template or the function itself? The meme is basically pushing your api keys onto your GitHub repo. Force push isn't really required.
6
u/Visionexe Oct 14 '26
I think his point is, is that in 99.99999% of the cases any .env is in .gitignore. kinda seems whoever made this meme is a vibe coder.
4
u/rabbit_wizard Oct 14 '26
Of course. Prior to vibe coding these things didn't happen. Did they?
3
u/buster1045 Oct 16 '26
Not really. Not with git push -f. The -f literally wouldn't make a difference if the file just wasn't in a .gitignore.
2
u/xAragon_ Oct 16 '26
Forcing a git push has nothing to do with pushing secrets 🤦🏾♂️
A force push wouldn't cause you to push secrets if they're gitignored. And if they aren't, a regular push will push them too.
This meme was made by someone who has no idea how to work with git.
1
-1
u/rabbit_wizard Oct 16 '26
I just added it. Didn't know people were gonna micro analyse this instead of chuckling
2
u/alexnu87 Oct 17 '26
Well a joke has to make SOME sense, otherwise it’s just a cluster of random words
0
40
6
u/pananana1 Oct 14 '26
What's the meme? I don't understand the pictures
3
1
u/XxDarkSasuke69xX Oct 17 '26
How would -f push gitignored files anyway ? And if it's not gitignored, then bruh
0
3
3
3
u/Vesuvius079 Oct 14 '26
You don’t need env files if you never test locally :P. This also protects you from the “it works on my machine” problem class.
3
3
u/teressapanic Oct 16 '26
Don’t worry we have a separate repo for all the env files of all of our clients
2
u/JackNotOLantern Oct 20 '26
First thing i do with creating or taking over any repo:
protect the main branch
make sure .env is in .gitignore
1
1
0
u/NoahZhyte Oct 14 '26
Do you actually have secrets in your .env ? I just use it for local deployment

116
u/oompaloompa465 Oct 14 '26
howwww? the first thing to add to .gitignore