Remix.run Logo
jmholla 6 hours ago

You still want to put these kinds of things in every project where you are collaborating. You can't depend on everyone to know and do this, so best to just be prepared for those who don't.

phyzome 5 hours ago | parent | next [-]

I'd prefer to leave them out. That way I can see who's not paying attention when they make commits and are just doing `git commit -a -m "yolo"`.

Defletter 6 hours ago | parent | prev [-]

I have this two liner as part of my post-os-install setup script:

    curl -fsSL https://www.toptal.com/developers/gitignore/api/linux > ~/.gitignore
    git config --global core.excludesFile ~/.gitignore
OJFord 6 hours ago | parent [-]

Assuming your global config is ~/.config/git/config, you can download it to ~/.config/git/ignore and not need the overriding explicit excludesFile.

Defletter 6 hours ago | parent [-]

Huh, TIL