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