Hong Wang
Hong Wang

Reputation: 113

heroku git clone issue

I try to clone one project from heroku, while I run into several issues, help me, thanks very much.

Firstly, I try

$ heroku git:clone myapp && git clone [email protected]:myapp.git

both outputs following messages


Cloning from app 'myapp'... Cloning into myapp...

ssh: connect to host heroku.com port 22: Bad file number

So, I am using one ssh config file


Host heroku.com Hostname heroku.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa

Port 443

Then using the same command

$ heroku git:clone myapp && git clone [email protected]:myapp.git

both with new output messages


Cloning from app 'myapp'... Cloning into myapp... ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I am collaborator of the project and I have added the public key into my account, and I have installed heroku-toolbelt.

Upvotes: 2

Views: 1075

Answers (1)

SSR
SSR

Reputation: 6438

If any any get this type of error while cloning app from heroku or push or pull

Failed to connect to git.heroku.com port 443: Network is unreachable

I am just giving it a name as answer.

git clone --verbose [email protected]:myapp.git

As @Othrayte's comment he suggested to use this command to use.

Thanks @Othrayte

Upvotes: 0

Related Questions