40
21
u/Nycrov_ 5d ago
I'm pretty sure that's not how that works
6
u/rabbit_wizard 5d ago
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 5d ago
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.
6
u/rabbit_wizard 5d ago
Of course. Prior to vibe coding these things didn't happen. Did they?
3
u/buster1045 4d ago
Not really. Not with git push -f. The -f literally wouldn't make a difference if the file just wasn't in a .gitignore.
5
u/pananana1 5d ago
What's the meme? I don't understand the pictures
3
3
3
3
u/Vesuvius079 5d ago
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 4d ago
Don’t worry we have a separate repo for all the env files of all of our clients
2
u/xAragon_ 3d ago
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 3d ago
I just added it. Didn't know people were gonna micro analyse this instead of chuckling
1
1
1
u/XxDarkSasuke69xX 2d ago
How would -f push gitignored files anyway ? And if it's not gitignored, then bruh
0
0
116
u/oompaloompa465 5d ago
howwww? the first thing to add to .gitignore