‹ BackHN Continuity

Thread

Two Git ignore files nobody told me about

95 points · 66 comments · faithraven

  1. n4bz0r · · focus · HN ↗
    I absolutely despise when people commit their personal ignore patterns. My opinion is that the code in the repository shouldn't know anything about personal environments. The exception is when the entire team benefits from having their common ignore patterns in the repo - in this scenario, the environment details are no longer personal and it doesn't make much sense to not commit them. In any other situation, people are perfectly capable of ignoring their crap on their own and shouldn't pollute the repo. Glad .git/info/exclude is getting more exposure.
    1. BeetleB · · focus · HN ↗
      > I absolutely despise when people commit their personal ignore patterns.

      Beyond things not being neatly compartmentalized, what is the problem? The only risk I see is that you'll have a file you forgot to commit because it happened to match one of those patterns.

      Having strong opinions on stuff like this is not healthy.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.