My machine where my project repo (code) is inaccessible right now, and I thought I could access the code from another machine by pulling the git repo from resin, so I did the follow
mkdir myproject
cd myproject
git init
git remote add resin gh_arthurlutz@git.resin.io:gh_arthurlutz/project.git
git remote -v
resin gh_arthurlutz@git.resin.io:gh_arthurlutz/project.git (fetch)
resin gh_arthurlutz@git.resin.io:gh_arthurlutz/project.git (push)
$ git pull -v --all
Fetching resin
remote: Counting objects: 89, done.
remote: Compressing objects: 100% (87/87), done.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
error: Could not fetch resin
I though it might be an error due to an SSH key not being known by resin, but I have both ssh keys in my resin.io profile (by the way you can import a duplicate key).
I remember having an issue like this when I added a key for resin.io after initially using my github key and changing some names from the local defaults. I fixed it by adding a ~/.ssh/config file containing,
Please keep in mind that resin.io isn’t a git hosting platform; the git endpoints behave more like a cache, and repositories may be evicted from it at times due to various reasons, causing cloning from them to fail.