Hacker News new | ask | show | jobs
by akerro 2680 days ago
Since MS took over Github also code-search requires being logged in.
2 comments

Are you sure about that? I seem to recall them doing this for quite a while. Or maybe that was advanced code searches?
Code search has been restricted at least since September 2016 according to a quick search on HN: https://news.ycombinator.com/item?id=19185835
Quite sure you are right, unless my memory is failing sitewide github search of codebases required a login. Searching for repo names without login was ok though.

Possibly it was only enforced for very generic search queries returning thousands of results but it has been around a long time, Github acquisition was only in October 2018.

Sitewide code search has been used to find AWS keys and other secrets people have accidentally uploaded. The login requirement is so they can set meaningful rate limits.
You could use site:github.com in a google search. Choose your poison.
Alternative:

!gh or !git anywhere in a ddg search will restrict it to github.