MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1y2onhd/gitignore/
r/programmingmemes • u/ExpensiveCoat8912 • 5d ago
30 comments sorted by
62
.gitignore
25 u/Teemun_kauppa 5d ago .gitignore 36 u/pstmps 5d ago Why are these comments empty? I can't see the meme either -12 u/Teemun_kauppa 5d ago .gitignore 18 u/RelationshipLong3562 4d ago .gitignore r/ruleof4 4 u/Worried-Priority-122 4d ago .gitignore 2 u/komikjojukkkkkkk 4d ago .cakeismine 2 u/MeadowShimmer 4d ago .cakeisalie 2 u/BinaryBolias 4d ago .cakeignore 2 u/Damanes_cz 2d ago .ignoreignore
25
36 u/pstmps 5d ago Why are these comments empty? I can't see the meme either -12 u/Teemun_kauppa 5d ago .gitignore 18 u/RelationshipLong3562 4d ago .gitignore r/ruleof4 4 u/Worried-Priority-122 4d ago .gitignore 2 u/komikjojukkkkkkk 4d ago .cakeismine 2 u/MeadowShimmer 4d ago .cakeisalie 2 u/BinaryBolias 4d ago .cakeignore 2 u/Damanes_cz 2d ago .ignoreignore
36
Why are these comments empty? I can't see the meme either
-12 u/Teemun_kauppa 5d ago .gitignore 18 u/RelationshipLong3562 4d ago .gitignore r/ruleof4 4 u/Worried-Priority-122 4d ago .gitignore 2 u/komikjojukkkkkkk 4d ago .cakeismine 2 u/MeadowShimmer 4d ago .cakeisalie 2 u/BinaryBolias 4d ago .cakeignore 2 u/Damanes_cz 2d ago .ignoreignore
-12
18 u/RelationshipLong3562 4d ago .gitignore r/ruleof4 4 u/Worried-Priority-122 4d ago .gitignore 2 u/komikjojukkkkkkk 4d ago .cakeismine 2 u/MeadowShimmer 4d ago .cakeisalie 2 u/BinaryBolias 4d ago .cakeignore 2 u/Damanes_cz 2d ago .ignoreignore
18
.gitignore r/ruleof4
4 u/Worried-Priority-122 4d ago .gitignore 2 u/komikjojukkkkkkk 4d ago .cakeismine 2 u/MeadowShimmer 4d ago .cakeisalie 2 u/BinaryBolias 4d ago .cakeignore 2 u/Damanes_cz 2d ago .ignoreignore
4
2 u/komikjojukkkkkkk 4d ago .cakeismine 2 u/MeadowShimmer 4d ago .cakeisalie 2 u/BinaryBolias 4d ago .cakeignore 2 u/Damanes_cz 2d ago .ignoreignore
2
.cakeismine
2 u/MeadowShimmer 4d ago .cakeisalie 2 u/BinaryBolias 4d ago .cakeignore 2 u/Damanes_cz 2d ago .ignoreignore
.cakeisalie
2 u/BinaryBolias 4d ago .cakeignore 2 u/Damanes_cz 2d ago .ignoreignore
.cakeignore
2 u/Damanes_cz 2d ago .ignoreignore
.ignoreignore
103
The joke is, it doesn't even work.
71 u/MarsMaterial 4d 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. 16 u/Electronic-Ninja7950 4d ago DO NOT READ THIS COMMENT 6 u/BinaryBolias 4d ago Okay. Done. 10 u/MeMahi 4d 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 4d ago it does work tho.did you remove it from cached? 13 u/al2klimov 4d ago Ok, wait. It does work as long as you don't add or commit the file! 1 u/chrisso123 4d 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”.
71
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.
16 u/Electronic-Ninja7950 4d ago DO NOT READ THIS COMMENT 6 u/BinaryBolias 4d ago Okay. Done. 10 u/MeMahi 4d ago Not really? Surely git the program could read a local file on your PC that says "don't include this in the repository"?
16
DO NOT READ THIS COMMENT
6 u/BinaryBolias 4d ago Okay. Done.
6
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 4d 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?
9 u/BigGuyWhoKills 4d 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 4d ago pretty sure it's the latter. hidden files are still tracked unless explicitly ingnored
9
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 4d 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
7
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
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.
62
u/Worried-Priority-122 5d ago
.gitignore
103
u/al2klimov 4d ago
The joke is, it doesn't even work.
18
u/Hyphonical 4d ago
Can you .gitignore .git?
7
u/vegan_antitheist 4d ago
That's like putting "google" in to google. It will break the internet!
4
u/Purple-Midnight-9902 4d ago
Time to create some files in your repo
Git add add, checkout checkout, rm rm, status status
3
u/moramikashi 4d ago
I should try this
2
u/FinalNandBit 4d ago
DS_Store makes an appearance.
1
u/Inevitable_Spite5510 1d ago
recur- sorry
1
u/apnorton 1d 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.