you are viewing a single comment's thread
view the rest of the comments
[โ€“] 15 points 9 months ago (7 children)

Anyone else dislike the idea? Like, having ignore patterns be ported automatically to everyone that wants to clone the repo just seems.... always better than making people do it themselves. At basically no cost.

  • source
  • hideshow 7 child comments
  • [+] [S] 13 points 9 months ago (3 children)
  • [โ€“] 5 points 9 months ago (1 child)

    I have the same preference for personal projects, but when I was working on a corporate team it was really useful to have the "run configs" for intellij checked in so that each new team member didn't need to set them up by themselves. Some of the setup needed to get the python debugger properly connected to the project could get quite gnarly.

  • source
  • parent
  • hideshow 1 child comment
  • [โ€“] 2 points 9 months ago

    Gitignore settings don't prevent checking in run configs if that's what you want to do. Even if someone has the run configs pattern ignored, they'll get those files with the repo clone. Gitignore only prevents adding files that aren't already checked in - it's a guard rail to prevent accidentally checking in so something you don't want. You can override ignore settings to check in something new in with git add --force <filename>

  • source
  • parent
  • [โ€“] 8 points 9 months ago

    shrug To each their own, I guess.

    I can definitely appreciate that opinion, I just... disagree. I don't really give 2 shits about a file having some stuff in it that I don't personally use, so long as it still has a purpose. I.E. I'll take a little clutter in a file like that, that basically never gets looked at or edited, over the chance of cluttering up the repo itself, or PRs, or history with stuff that has no purpose at all.

  • source
  • parent
  • [โ€“] 11 points 9 months ago

    Global gitignore is for idiosyncrasies of your computer, not for repo-specific stuff. For example if you use an editor that writes in-place backup or swap files (like .swp files with Vim's default settings), or you're on a Mac which writes .DS_Store files into every directory, you're going to want those ignored for every repo. That way you can comfortably work with other people's repos, even if they're not configured for your particular setup.

    The global ignore combines with gitignore files in each repo. So if it's an ignore pattern that everyone working with that repo should have, put it in the repo.

  • source
  • parent
  • [โ€“] 4 points 8 months ago

    I actually like it a lot for stuff that is user specific, not repo specific. I imagine someone could have a "build.log" to view the build output in some specific way that hooks up to a mini taskbar app or some other random shit.

    I've personally added some files that don't relate to the project at all and has no reason for being inside a .gitignore and I've had to add it many times.

  • source
  • parent
  • load more comments (-1 replies)