Skip to content

Clone URL in browser? #133

Open
Open

Description

@rbren

Sorry if there's something I'm missing here...

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.

Any pointers?

Thanks!
-Bobby

Activity

  1. rdzakmic commented on Oct 20, 2017

    @rdzakmic

    I got the same issue.

  2. creationix commented on Oct 23, 2017

    @creationix
    Owner

    So you just want real only of public repos that allow cloning over the smart http protocol? What about the plain TCP git:// protocol?

  3. rdzakmic commented on Oct 24, 2017

    @rdzakmic

    In my case just http protocol.

  4. creationix commented on Oct 26, 2017

    @creationix
    Owner

    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.

  5. creationix commented on Oct 26, 2017

    @creationix
    Owner
  6. rdzakmic commented on Oct 27, 2017

    @rdzakmic

    Thanks, i'll give it a try.

  7. easrng commented on Nov 25, 2020

    @easrng

    Is this issue up to date? I need to do a smart HTTPS clone, and am wondering how.

  8. creationix commented on Dec 6, 2020

    @creationix
    Owner

    As far as I know nothing has changed and github still doesn't send the headers required for your browser to talk to it.

  9. easrng commented on Dec 6, 2020

    @easrng

    As far as I know nothing has changed and github still doesn't send the headers required for your browser to talk to it.

    I'm not actually cloning from github, and I am planning on running this on a runtime where CORS is not an issue.

  10. Sleepful commented on Apr 18, 2024

    @Sleepful

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions