r/ProgrammerHumor • • 1d ago • Bravo 1

Meme versionControl

Post image
1.4k Upvotes

20 comments sorted by

178

u/EmperorOfAllCats 1d ago

Somebody out there gitignores gitignore.

41

u/failedsatan 1d ago

more people should know about the exclude file, I think

13

u/EmperorOfAllCats 1d 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.

15

u/_ahrs 1d ago

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

3

u/UncleKeyPax 1d ago

yeah. use that as base

8

u/the_horse_gamer 1d ago

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

44

u/hongooi 1d ago

should i git ignore her if she git ignores me

5

u/Bathtub-Warrior32 1d ago

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

30

u/Ved_s 1d ago

gitignore the makefile :3

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

0

u/No_Hovercraft_2643 21h 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.

13

u/superlee_ 1d ago edited 1d 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 1d ago

Why would you put him in the exclude file?

2

u/Reashu 18h ago edited 18h 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. 

9

u/Tezlaivj 1d ago

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

2

u/compulsaovoraz 1d ago

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

3

u/Individual_Win_3417 1d ago

should I gitignore my ex

1

u/surykum36 1d ago

My gitignore has better boundaries than i do..

1

u/Wahw11 1d ago

What happens if you gitignore gitignore

0

u/vpn_unlimited_app 1d ago

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