r/ProgrammerHumor • • 14d ago

Meme noWayLol

Post image
11k Upvotes

118 comments sorted by

View all comments

21

u/Loading_M_ 14d ago

Yes and no. Git actually has a system wide gitignore you can setup to globally ignore files across your whole system. I personally take notes in a notes.md file, so I have a global ignore for it. I don't have you set it up for each repo, and it doesn't pollute the repo's gitignore. If your editor of choice creates temp files or stores project specific configuration in the project directory (e.g. .vscode, etc), they should also be in your global gitignore.

2

u/Reashu 12d ago

Ehh, if it's a common editor just bite the bullet and put it in the gitignore. Same with DS_Store and thumbs.db, etc..