

I’m working on an estimate for changes to a heroku hosted web application.
I was trying to run heroku git:clone --app appname
after adding myself as a collaborator. I was running this on a new vagrant box running ubuntu.
However, I kept getting this error message:
vagrant@precise64:~$ heroku git:clone --app appname
Cloning from app 'appname'...
Cloning into 'appname'...
error: The requested URL returned error: 400 while accessing https://git.heroku.com/appname.git/info/refs
fatal: HTTP request failed
And I couldn’t understand why.
After some fiddling, I determined that first you need to have an ssh key generated:
vagrant@precise64:~$ ssh-keygen -t rsa
And then you can run:
vagrant@precise64:~$ heroku git:clone --app appname --ssh-git
Cloning from app 'appname'...
Cloning into 'appname'...
Warning: Permanently added the RSA host key for IP address 'ipaddress' to the list of known hosts.
Fetching repository, done.
remote: Counting objects: 902, done.
remote: Compressing objects: 100% (473/473), done.
remote: Total 902 (delta 433), reused 826 (delta 379)
Receiving objects: 100% (902/902), 28.06 MiB | 556 KiB/s, done.
Resolving deltas: 100% (433/433), done.
Hope this helps someone, somewhere.
I’ve got the same error but your solution didn’t help, sadly.
Hi Ben,
Did you ever figure out your issue?
It did help! Thanks a bunch.