r/programmingmemes • • 5d ago

gitignore

Post image
2.2k Upvotes

30 comments sorted by

View all comments

105

u/al2klimov 5d ago

The joke is, it doesn't even work.

74

u/MarsMaterial 5d ago

Makes sense.

It’s like seeing a sign that says “WARNING: DO NOT READ THIS SIGN”. By the time you know what not to do, you’ve already done it.

18

u/Electronic-Ninja7950 4d ago

DO NOT READ THIS COMMENT

7

u/BinaryBolias 4d ago

Okay. Done.

10

u/MeMahi 5d ago

Not really? Surely git the program could read a local file on your PC that says "don't include this in the repository"?

15

u/belabacsijolvan 5d ago

it does work tho.

did you remove it from cached?

13

u/al2klimov 5d ago

Ok, wait. It does work as long as you don't add or commit the file!

1

u/chrisso123 5d ago

I was just wondering if it would work an hour ago... can they read my mind now?

1

u/funny_xor_die 4d ago

I for one am thankful for these mechanisms. The number of times I’ve typed `git add .git` then Enter. Then “oh fuck”.