Hacker GitHub

← All repos

github/gitignore

View on GitHub ↗ ★ 176,132

A collection of useful .gitignore templates

54 mentions on Hacker News by 52 people: 19 stories, 35 comments · first 2010-11-08 · latest 2026-09-06

Mentions per year 54 mentions · busiest year 2022 (6)
20082026
  1. https://github.com/github/gitignore/blob/main/Global/macOS.g...
    comment by brewmarche · 2026-09-06 · in .gitignore Everything by Default
  2. But they do: https://github.com/github/gitignore/blob/main/Global/VisualS... You need to merge the relevant ignore files to create one specific for you, so if you use VSCode on macOS VisualStudioCode.gitignore (e.g., .vscode) +…
    comment by brewmarche · 2026-09-06 · in .gitignore Everything by Default
  3. Because it's insufficient? https://github.com/github/gitignore/blob/main/Rust.gitignore for example still falls victim to basically all of the issues specifically called out.
    comment by piker · 2026-09-05 · in .gitignore Everything by Default
  4. …the gitignore templates for every programming language officially recommended by github itself - https://github.com/github/gitignore - funny how I did not see a single comment talk about this
    comment by vivzkestrel · 2026-09-05 · in .gitignore Everything by Default
  5. ▲ 1
    A Collection of .gitignore Templates
    story by terminalbraid · 2026-05-06 · 0 comments
  6. …that. Personally, I just grab a gitignore file from GitHub and make a few tweaks here and there: https://github.com/github/gitignore/
    comment by saila · 2026-02-23 · in Git's Magic Files
  7. …!*.go !go.sum !go.mod !README.md !LICENSE # ...even if they are in subdirectories !*/ [0] https://github.com/github/gitignore/blob/main/community/Gola...
    comment by austinjp · 2025-09-05 · in .gitignore Everything by Default
  8. …to be for "Continuous Tests" [0] found through git blame [1] [0] https://continuoustests.com/ [1] https://github.com/github/gitignore/commit/2183a6c531d7085e2...
  9. Somebody didn't know about https://github.com/github/gitignore
    comment by karunamurti · 2025-07-29 · in .gitignore Is Inherently Sisyphean
  10. …might fit if you shave off the square enough but large repos don't do this, they use a round peg: https://github.com/github/gitignore
    comment by elijahwright_ · 2025-07-28 · in .gitignore Is Inherently Sisyphean
  11. Cool post. I highly suggest using templates from https://github.com/github/gitignore for your project as they tend to include a lot of files commonly found in them - eg .idea folders and so on.
    comment by davydm · 2025-07-26 · in .gitignore Is Inherently Sisyphean
  12. ▲ 2
    Show HN: Simple gitignore generator on the web – GUItignore
    story by 0x00cl · 2025-06-21 · 0 comments
  13. ▲ 4
    A collection of useful .gitignore templates
    story by mooreds · 2024-09-22 · 0 comments
  14. …have it all in one huge file, but has a somewhat comprehensive template repo of many ecosystems: https://github.com/github/gitignore (This is what is used to populate the templates if you ask GitHub to include a gitignore when creating a…
    comment by WorldMaker · 2024-07-23 · in Show HN: Lisp in C#
  15. You might want to put __pycache__ in your .gitignore, check here for example: https://github.com/github/gitignore/blob/main/Python.gitigno...
    comment by steve1977 · 2024-07-19 · in Show HN: NetSour, CLI Based Wireshark
  16. …considering the GitHub .gitignore template for Node only ignores .env.local, not .local.env: https://github.com/github/gitignore/blob/main/Node.gitignore...
  17. ▲ 21
    gitignore – A collection of useful .gitignore templates
    story by peter_d_sherman · 2022-11-23 · 4 comments
  18. ▲ 4
    A collection of useful .gitignore templates
    story by behnamoh · 2022-11-05 · 1 comment
  19. …Air Traffic Control. Github provides a Unity gitignore template, maybe it's best to start here? https://github.com/github/gitignore/blob/main/Unity.gitignor...
    comment by smoldesu · 2022-08-13 · in Ask HN: Why is version control so hard?
  20. ▲ 1
    Let's improve GitHub's recommended Perl .gitignore
    story by hawkeyedan · 2022-05-09 · 1 comment
  21. ▲ 163
    Inclusive Coding Bot on GitHub
    story by gjsman-1000 · 2022-04-01 · 220 comments
  22. …pycache, pyc files). They make your repo very heavy. Take a look at this example .gitignore : https://github.com/github/gitignore/blob/main/Python.gitigno...
    comment by cors-fls · 2022-02-25 · in Show HN: Terminal Based Wikipedia
  23. I would recomend recommend adding the language specific .gitignore file. (edit) https://github.com/github/gitignore
  24. Interesting... a git commit is almost always represented as a diff... example: https://github.com/github/gitignore/commit/991e760c1c6d50fdd... Whether it's represeented as a diff internally seems completely irrelevant to me, even to…
  25. Useful for Mac users: https://github.com/github/gitignore/blob/master/Global/macOS...
    comment by saagarjha · 2020-11-14 · in Pimp My Microwave
  26. ▲ 2
    GitHub's collection of .gitignore Files
    story by tosh · 2020-10-28 · 0 comments
  27. That's not the only problem. Apple leaves a whole bunch of "mac droppings" all over the place: https://github.com/github/gitignore/blob/master/Global/macOS... The worst part is that .DS_Store assumes, even on remote (SMB) filesystems, that…
    comment by kstenerud · 2019-07-03 · in .DS_Store
  28. ▲ 1
    A collection of useful .gitignore templates
    story by febin · 2018-06-19 · 0 comments
  29. ▲ 2
    A collection of useful .gitignore templates
    story by panchtatvam · 2018-02-14 · 1 comment
  30. …I followed the similar steps for https://gitignore.io I was doing a lot of development work and going to github.com/github/gitignore to copy templates from GitHub's website to my own file system was getting tedious. What I wanted was a…
  31. ▲ 1
    A collection of .gitignore templates
    story by bsilvereagle · 2017-10-18 · 0 comments
  32. You shouldn't put your node_modules into git. Try using this git ignore. https://github.com/github/gitignore/blob/master/Node.gitigno...
    comment by brian_herman · 2017-09-10 · in A macOS app to generate app icons
  33. ▲ 2
    A collection of .gitignore templates
    story by TheGovernor · 2017-05-07 · 1 comment
  34. https://github.com/github/gitignore
    comment by ciupicri · 2017-01-26 · in Create .gitignore files for your project
  35. …cache/internal files for most of the packages. edit : The .gitignore files that are served are from https://github.com/github/gitignore
  36. …and dev env dependent and they don't seem to be made for the same environment. Hardly comparable. https://github.com/github/gitignore/blob/master/Ruby.gitigno... https://github.com/github/gitignore/blob/master/Rails.gitign...
  37. Just use this as your .gitignore file for every project https://github.com/github/gitignore/blob/master/Global/Emacs...
  38. ▲ 2
    GitHub new design
    story by lin0 · 2015-11-20 · 1 comment
  39. What advantage does this have over just grabbing the file from https://github.com/github/gitignore directly?
  40. …By the way GitHub has a repository of .gitignore files for various tools and languages [1]. [1]: https://github.com/github/gitignore
  41. …any case, this .gitignore is almost entirely the standard GitHub setup for Visual Studio projects. https://github.com/github/gitignore/blob/master/VisualStudio...
  42. …they all live in .idea. Github has a nice .gitignore build for these (and other common ignores): https://github.com/github/gitignore/blob/master/Global/JetBr...
  43. …Urgh this is an annoying new step to node development Someone should tell github the new way... https://github.com/github/gitignore/blob/master/Node.gitigno...
  44. …a 2.3 app. (tho i can't find a .gitignore for it https://github.com/fortuity/rails3-gitignore https://github.com/github/gitignore/blob/master/Rails.gitign...
  45. ▲ 3
    Gitignores for (almost) every language
    story by rickyrickyrice · 2013-07-10 · 0 comments
  46. ▲ 4
    A collection of useful .gitignore templates
    story by morphics · 2013-04-04 · 0 comments
  47. You could try to partially reuse: https://github.com/github/gitignore Which try to be a gitignore database.
  48. Maybe not so intrusive, but they could add it to https://github.com/github/gitignore/blob/master/Ruby.gitigno... . Not sure how many people use that repo tough.
  49. ▲ 2
    Github/gitignore
    story by taylorbuley · 2012-05-01 · 0 comments
  50. ▲ 2
    A collection of useful .gitignore templates
    story by goodwink · 2012-02-02 · 0 comments