Hacker News new | ask | show | jobs
by eddiejaoude 664 days ago
I don't think you read the article, there is a video at the end if you prefer.

Yes we should use git ignore for the repo specific items, so if the repo has terraform it should ignore generated files - but not desktop tools people use as we all use different dev tools

1 comments

> Examples of folders included in the git ignore file are generated files like “.next” from NextJS or “test-results” from Playwright. These will be generated for every developer on the project regardless of their OS, IDE etc.

> Yes I am saying this is wrong… (let me know if you agree/disagree below)

I didn't realize that the first paragraph is saying "This is good"; I thought the second paragraph was saying that the first paragraph is bad.

oh sorry for the confusion! I do think we need both git ignores, but to be used appropriately.

System global .gitignore solves a problem specific to that developer

Repo .gitignore solves a problem for the project (and every developer)