Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Claude Code reads AGENTS.md only when telemetry is on(szypowi.cz)
    81comments
  2. The GitHub wiki is an anti-pattern(michaelheap.com)
    21comments
  3. Jev in 25 Lines of Python(nobodywho.ai)
    126comments
  4. Z80 REPL(abagames.github.io)
    7comments
  5. Samsung accidentally freezes its smart fridges with a software update(androidauthority.com)
    48comments
  6. OpenAI is enlisting an influencer army to make it look 'good for the world'(businessinsider.com)
    56comments
  7. GPT-6 Sol and Luna(openai.com)
    787comments
  8. I Don't Want the Details(michaelheap.com)
    52comments
  9. Claude Opus 5.5(anthropic.com)
    1004comments
  10. QuestDB (YC S20) Is Hiring a Sales Engineer(questdb.com)
    discuss
  11. Tokens Too Cheap to Meter(jyn.dev)
    22comments
  12. Transit rewards(waymo.com)
    239comments
  13. OpenAI GPT–6 Astra breaks Enigma message that has resisted solution since 2005(cryptocellar.org)
    410comments
  14. Show HN: Ive Sent It – online courier for files, with signed proof of delivery(ivesentit.com)
    8comments
  15. Microsoft killed FoxPro in 2007. Anyway, here's FoxPro revived(foxscript.org)
    216comments
  16. Two Git ignore files nobody told me about(dinculescu.dev)
    13comments
  17. What California is learning from solar panels built over irrigation canals(kqed.org)
    505comments
  18. Show HN: RxFilm Studio–Create and edit your product videos with AI agent(rxlab.app)
    6comments
  19. ReBarUEFI: Resizable BAR for almost any UEFI system(github.com/xcuri0)
    60comments
  20. How did AMD Ryzen get 50% faster in two years?(lemire.me)
    166comments
  21. The Price of Intelligence Is Falling Rapidly(marginalrevolution.com)
    6comments
  22. Show HN: Jevper – the Jev interface on top of any OpenAI-compatible model(github.com/zhulinchng)
    discuss
  23. 'We hacked the FBI:' Hackers say they have data on all FBI employees(404media.co)
    509comments
  24. Data-only attacks are easier than you think (2024)(usenix.org)
    29comments
  25. SAML: A fractal of bad design(trailofbits.com)
    152comments
  26. WordPress: Unauthenticated path traversal leading to conditional RCE(github.com/wordpress)
    112comments
  27. Claude Opus 5.5 Intelligence, Performance and Price Analysis (Max)(artificialanalysis.ai)
    99comments
  28. Pentagon says overreliance on AI contributed to missile strike on Iran school(bloomberg.com)
    382comments
  29. Show HN: Npunlock – Run custom C kernels for Intel NPUs(github.com/hsfzxjy)
    12comments
  30. Unreal Agent(unreallabs.ai)
    114comments

Two Git ignore files nobody told me about

23 pointsby 2h agomihai.dinculescu.dev
13 comments
2h agoHN ↗

Thanks I had no idea about these either!

51m agoHN ↗

I'd never heard of .git/info/exclude, core.excludesFile, or ~/.config/git/ignore before. Thanks for posting this!

35m agoHN ↗

This is great, and nicely written up in the context of agentic repos etc, but presumably no-one reads the official docs, right: https://git-scm.com/docs/gitignore where the multiple ways of ignoring files are clearly stated?

29m agoHN ↗

There is a tweet doing numbers on Twitter right now which is effectively:

"Do the reading b/c you would be amazed how many people don't do the reading"

24m agoHN ↗

So many people treat git commands like magic words, and then are terrified when they mess up their repo (example in this xkcd... https://xkcd.com/1597/)

Reading documentation is a superpower

13m agoHN ↗

I'd wager a small sum that git is the tool most of us learned by accident, some of them fortunate, some less so. Thankfully, this one was the former.

15m agoHN ↗

I have never seen these two files in any git repository I've cloned so far.

11m agoHN ↗

That’s because, unlike .gitignore, they are not committed.

15m agoHN ↗

Until Claude suggested .git/info/exclude, it never crossed my mind to question how ignoring worked. A search would have answered it in seconds, but you have to think to ask first. I didn't, and I suspect most people don't either. Especially with git, which nearly everyone learns by doing; very few of us ever sit down and learn it properly. That's why I wrote it up: so a few more people can learn this the way we learn everything else in git, by accident.

Now that you mention it, I should add a link to those docs in the article. Thanks!

17m agoHN ↗

This is great... one thing I wish is to be able to exclude are lines, for instance some lines in my config that only benefits the work I do. Some configs don't allow extending and that's where this would come in handy. Anyone have any tricks for that?

10m agoHN ↗

You can from the checked in config file include a local file which is not checked in (only if it exists).

For example, with direnv, the `.envrc` in my projects usually has

    source_env_if_exists .envrc.local

And the repo also ships with a `.envrc.local.example` file.