logoalt Hacker News

tayo42today at 4:08 PM2 repliesview on HN

How is pulling dependent on github?

Git pulling isn't unique to github and it works over http or ssh?


Replies

simonwtoday at 5:17 PM

A neat thing about GitHub is that every file on it can be accessed from URLs like https://raw.githubusercontent.com/simonw/llm-prices/refs/hea... which are served through a CDN with open CORS headers - which means any JavaScript application running anywhere can access them.

Demo: https://tools.simonwillison.net/cors-fetch?url=https%3A%2F%2...

show 1 reply
speakingmoistlytoday at 4:34 PM

It's less about pulling and more about tools like DeepWiki making the assumption that its inputs live in GitHub, so repository URLs are expected to be GH URLs as opposed to a URL to a git repository anywhere.

That being said, there's no reason for tools like it to have those constraints other than pushing users into an ecosystem they prefer (i.e. GitHub instead of other forges).