logoalt Hacker News

zarlss43yesterday at 3:34 PM2 repliesview on HN

These do not include os generated files like his first example, .DS_Store. I do use the templates, but I have a gist that I add to every project of os generated files that may work themselves in.


Replies

bloomersyesterday at 6:17 PM

It's a good practice to ignore OS specific files in user level gitignore but I think that putting it (redundantly for some of us) in repo is a good practice. Some people don't maintain their own user ignores and might accidentally commit to shared repository. It's clearly fault of commiter and reviewer but let's just save ourselves stress and put those records in the .gitignore of the repo.

adammarplesyesterday at 3:37 PM

Just have a global, personal gitignore in your home folder to cover them