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.
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.