r/ProgrammerHumor • • Mar 02 '20

Impossible

Post image
61 Upvotes

3 comments sorted by

4

u/eliseu_videira Mar 03 '20

TIL that .gitignore works even if you don't add/commit it, but I guess it doesn't work if you check it out on another machine, because you won't get the .gitignore file.

3

u/ChairYeoman Mar 03 '20

Why do this?

2

u/bss03 Mar 03 '20 edited Mar 03 '20

You shouldn't. There's a developer-specific / project-shared exclude for that lives outside any repository. The .gitignore in the checkout should be project-specific / developer-shared and checked in.