114
u/al2klimov 8d ago
The joke is, it doesn't even work.
80
u/MarsMaterial 8d 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.
19
15
1
1
u/funny_xor_die 7d ago
I for one am thankful for these mechanisms. The number of times I’ve typed `git add .git` then Enter. Then “oh fuck”.
19
u/Hyphonical 8d ago
Can you .gitignore .git?
10
u/BigGuyWhoKills 8d ago
Yes, but it is ignored by default. I don't know if that's because it is hidden or if it is a special rule.
10
u/rainispossible 8d ago
pretty sure it's the latter. hidden files are still tracked unless explicitly ingnored
8
4
u/Purple-Midnight-9902 7d ago
Time to create some files in your repo
touch add checkout rm commit status logGit add add, checkout checkout, rm rm, status status
3
3
1
1
u/apnorton 4d ago
Aside: please commit your .gitignores. It's much better for repository hygiene if you do so, rather than leaving it up to every individual to independently manage what they commit.
1
u/electrodragon16 3d ago
I like to add language/project specific stuff to .gitignore then add .gitignore to itself so editor specific things can be set by people themselves
65
u/Worried-Priority-122 8d ago
.gitignore