Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

How to force brew using ssh version repository instead of https? #34363

Closed
yarcowang opened this issue Nov 21, 2014 · 4 comments
Closed

How to force brew using ssh version repository instead of https? #34363

yarcowang opened this issue Nov 21, 2014 · 4 comments

Comments

@yarcowang
Copy link

Recently i met this problem when work with github, and change the remote url from https to ssh could solve it.

error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly

But i don't know whether there a setting could make homebrew switch between https version and ssh version.

@jacknagel
Copy link
Contributor

Are you talking about the Homebrew repository itself, or a specific formula?

@yarcowang
Copy link
Author

I'm not quite sure..everything in github's repository has such problem...
see this:

$ brew tap homebrew/php
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-php'...
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly

I think brew might use https version of the repository, so maybe there are chance to add such option.

@jacknagel
Copy link
Contributor

If you're having trouble cloning over https from github in general, you can put something like this in your git config:

[url "git@github.com:"]
    insteadOf = "https://github.com/"

@yarcowang
Copy link
Author

Thanks.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants