Live data from Hacker News

.gitignore Is Inherently Sisyphean

rgbcu.be

1–10 of 68 posts

Re: .gitignore Is Inherently Sisyphean

#3
post #2

Cool post. I highly suggest using templates from https://github.com/github/gitignore for your project as they tend to include a lot of files commonly found in them - eg .idea folders and so on.

They're still not enough. Even with those, it's really easy for stuff to slip in.

You should just pick the nearly exhaustive option instead

Re: .gitignore Is Inherently Sisyphean

#5
I think people should be responsible for the litter of their own tools. If their commits have include any litter it should be rejected as they clearly aren't paying attention. The local gitignore is for project specific files.

Re: .gitignore Is Inherently Sisyphean

#8
post #2

Cool post. I highly suggest using templates from https://github.com/github/gitignore for your project as they tend to include a lot of files commonly found in them - eg .idea folders and so on.

Yes-anding this to say:

For per-user gitignore, one can set the following config in ~/.gitconfig:

    # System-wide gitignore file
    # To avoid in-repo repetition for system-specifc garbage files
    [core]
        excludesfile = ~/.config/git/gitignore

Then your file at ~/.config/git/gitignore can be a normal format, and not need to be stored in repo. Perfect for system files (.DS_Store...) or editor swap files etc.
Post reply on HN