You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to clone git repos in the browser by URL. I understand there are CORS issues, but I can set up a proxy.
I've got GitHub working fine (using js-github) but can't figure out how to work with non-GitHub URLs. I found git-web-platform, but it doesn't seem to be published.
Activity
rdzakmic commentedon Oct 20, 2017
I got the same issue.
creationix commentedon Oct 23, 2017
So you just want real only of public repos that allow cloning over the smart http protocol? What about the plain TCP git:// protocol?
rdzakmic commentedon Oct 24, 2017
In my case just http protocol.
creationix commentedon Oct 26, 2017
Back when I was working on this, I had written this extension that added CORS to github response headers . https://github.com/creationix/corson
Now to see if I can find the repo that powered the test site.
creationix commentedon Oct 26, 2017
Found it. See if this helps. https://github.com/creationix/clone-test
rdzakmic commentedon Oct 27, 2017
Thanks, i'll give it a try.
easrng commentedon Nov 25, 2020
Is this issue up to date? I need to do a smart HTTPS clone, and am wondering how.
creationix commentedon Dec 6, 2020
As far as I know nothing has changed and github still doesn't send the headers required for your browser to talk to it.
easrng commentedon Dec 6, 2020
I'm not actually cloning from github, and I am planning on running this on a runtime where CORS is not an issue.
Sleepful commentedon Apr 18, 2024
this is super old lol, but if you got a server you can proxy the request between github and the browser, so you manage the headers.