MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1y2onhd/gitignore/
r/programmingmemes • u/ExpensiveCoat8912 • 2d ago
28 comments sorted by
54
.gitignore
21 u/Teemun_kauppa 2d ago .gitignore 32 u/pstmps 2d ago Why are these comments empty? I can't see the meme either -12 u/Teemun_kauppa 2d ago .gitignore 16 u/RelationshipLong3562 2d ago .gitignore r/ruleof4 4 u/Worried-Priority-122 2d ago .gitignore 2 u/komikjojukkkkkkk 2d ago .cakeismine 2 u/MeadowShimmer 1d ago .cakeisalie 2 u/BinaryBolias 1d ago .cakeignore 2 u/Damanes_cz 6h ago .ignoreignore
21
32 u/pstmps 2d ago Why are these comments empty? I can't see the meme either -12 u/Teemun_kauppa 2d ago .gitignore 16 u/RelationshipLong3562 2d ago .gitignore r/ruleof4 4 u/Worried-Priority-122 2d ago .gitignore 2 u/komikjojukkkkkkk 2d ago .cakeismine 2 u/MeadowShimmer 1d ago .cakeisalie 2 u/BinaryBolias 1d ago .cakeignore 2 u/Damanes_cz 6h ago .ignoreignore
32
Why are these comments empty? I can't see the meme either
-12 u/Teemun_kauppa 2d ago .gitignore 16 u/RelationshipLong3562 2d ago .gitignore r/ruleof4 4 u/Worried-Priority-122 2d ago .gitignore 2 u/komikjojukkkkkkk 2d ago .cakeismine 2 u/MeadowShimmer 1d ago .cakeisalie 2 u/BinaryBolias 1d ago .cakeignore 2 u/Damanes_cz 6h ago .ignoreignore
-12
16 u/RelationshipLong3562 2d ago .gitignore r/ruleof4 4 u/Worried-Priority-122 2d ago .gitignore 2 u/komikjojukkkkkkk 2d ago .cakeismine 2 u/MeadowShimmer 1d ago .cakeisalie 2 u/BinaryBolias 1d ago .cakeignore 2 u/Damanes_cz 6h ago .ignoreignore
16
.gitignore r/ruleof4
4 u/Worried-Priority-122 2d ago .gitignore 2 u/komikjojukkkkkkk 2d ago .cakeismine 2 u/MeadowShimmer 1d ago .cakeisalie 2 u/BinaryBolias 1d ago .cakeignore 2 u/Damanes_cz 6h ago .ignoreignore
4
2 u/komikjojukkkkkkk 2d ago .cakeismine 2 u/MeadowShimmer 1d ago .cakeisalie 2 u/BinaryBolias 1d ago .cakeignore 2 u/Damanes_cz 6h ago .ignoreignore
2
.cakeismine
2 u/MeadowShimmer 1d ago .cakeisalie 2 u/BinaryBolias 1d ago .cakeignore 2 u/Damanes_cz 6h ago .ignoreignore
.cakeisalie
2 u/BinaryBolias 1d ago .cakeignore 2 u/Damanes_cz 6h ago .ignoreignore
.cakeignore
2 u/Damanes_cz 6h ago .ignoreignore
.ignoreignore
75
The joke is, it doesn't even work.
52 u/MarsMaterial 2d 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. 11 u/Electronic-Ninja7950 2d ago DO NOT READ THIS COMMENT 3 u/BinaryBolias 1d ago Okay. Done. 9 u/MeMahi 2d ago Not really? Surely git the program could read a local file on your PC that says "don't include this in the repository"? 11 u/belabacsijolvan 2d ago it does work tho.did you remove it from cached? 10 u/al2klimov 2d ago Ok, wait. It does work as long as you don't add or commit the file! 1 u/chrisso123 2d ago I was just wondering if it would work an hour ago... can they read my mind now? 1 u/funny_xor_die 1d ago I for one am thankful for these mechanisms. The number of times I’ve typed `git add .git` then Enter. Then “oh fuck”.
52
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.
11 u/Electronic-Ninja7950 2d ago DO NOT READ THIS COMMENT 3 u/BinaryBolias 1d ago Okay. Done. 9 u/MeMahi 2d ago Not really? Surely git the program could read a local file on your PC that says "don't include this in the repository"?
11
DO NOT READ THIS COMMENT
3 u/BinaryBolias 1d ago Okay. Done.
3
Okay. Done.
9
Not really? Surely git the program could read a local file on your PC that says "don't include this in the repository"?
it does work tho.
did you remove it from cached?
10 u/al2klimov 2d ago Ok, wait. It does work as long as you don't add or commit the file!
10
Ok, wait. It does work as long as you don't add or commit the file!
1
I was just wondering if it would work an hour ago... can they read my mind now?
I for one am thankful for these mechanisms. The number of times I’ve typed `git add .git` then Enter. Then “oh fuck”.
Can you .gitignore .git?
8 u/BigGuyWhoKills 2d 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. 9 u/rainispossible 2d ago pretty sure it's the latter. hidden files are still tracked unless explicitly ingnored
8
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.
9 u/rainispossible 2d ago pretty sure it's the latter. hidden files are still tracked unless explicitly ingnored
pretty sure it's the latter. hidden files are still tracked unless explicitly ingnored
5
That's like putting "google" in to google. It will break the internet!
Time to create some files in your repo
touch add checkout rm commit status log
Git add add, checkout checkout, rm rm, status status
I should try this
DS_Store makes an appearance.
54
u/Worried-Priority-122 2d ago
.gitignore
75
u/al2klimov 2d ago
The joke is, it doesn't even work.
16
u/Hyphonical 2d ago
Can you .gitignore .git?
5
u/vegan_antitheist 2d ago
That's like putting "google" in to google. It will break the internet!
4
u/Purple-Midnight-9902 1d ago
Time to create some files in your repo
Git add add, checkout checkout, rm rm, status status
3
u/moramikashi 2d ago
I should try this
2
u/FinalNandBit 1d ago
DS_Store makes an appearance.