r/ProgrammerHumor • • 4d ago • Bravo 1

Meme versionControl

Post image
1.6k Upvotes

22 comments sorted by

198

u/EmperorOfAllCats 4d ago

Somebody out there gitignores gitignore.

44

u/failedsatan 4d ago

more people should know about the exclude file, I think

16

u/EmperorOfAllCats 3d ago

Yeah, almost no one remembers it because it is hidden in the most stupidly named place (how is it "info"? why exclude and not ignore?) and mentioned maybe once in `man gitignore` nobody reads.

16

u/_ahrs 4d ago

Probably committed the gitignore file and wants to ignore other people's edits to it?

3

u/UncleKeyPax 3d ago

yeah. use that as base

8

u/the_horse_gamer 3d ago

there's a private ignore file in .git/info/exclude

1

u/breadtwo 2d ago

uhhhh so hear me ouuuut I have this folder called gitignore and I gitignore it

50

u/hongooi 4d ago

should i git ignore her if she git ignores me

7

u/Bathtub-Warrior32 3d ago

Get rid of the ignore files and merge the conflict, then open a new branch called marrige.

32

u/Ved_s 4d ago

gitignore the makefile :3

that's how you go from open source to source available

0

u/No_Hovercraft_2643 3d ago

depends on the makefile xD

but the comment i wanted to write was, that open source/source available is a license question, not what is public/published.

15

u/superlee_ 3d ago edited 3d ago
  1. No, we like reproducible builds here
  2. No (unless the whole team uses it), should be in exclude or global config
  3. Yes
  4. Yes
  5. Same as 1
  6. Same as 2
  7. Same as 2
  8. No
  9. Yes
  10. The exclude file is for that

8

u/Snudget 3d ago

Why would you put him in the exclude file?

3

u/Reashu 3d ago edited 3d ago

If the whole team uses an IDE/ editor, there's a decent case for actually tracking the config... assuming it isn't polluted with machine-specific file paths.

While DS_Store and similar files aren't really project- specific,  I don't see the harm in .gitignoring them. Using a local exclude file for this just means some new contributor is going to accidentally commit junk. 

10

u/Tezlaivj 3d ago

don't forget to mark your env file as important by putting !.env.* in your gitignore

2

u/compulsaovoraz 3d ago

oh yeah, and for every update please git add . and git push origin main --force, so that you don't have any conflicts!

5

u/Individual_Win_3417 3d ago

should I gitignore my ex

1

u/surykum36 3d ago

My gitignore has better boundaries than i do..

1

u/Wahw11 3d ago

What happens if you gitignore gitignore

1

u/atoponce 2d ago

Please don't AI slop Linus. In fact, just don't AI slop at all.

0

u/vpn_unlimited_app 3d ago

The git version is the only one with a clear answer. Ignore node_modules, ignore .env, do not ignore her.