I'd like to clone a git repository from my company's servers to my personal computer. The only way to acces these servers from "outside" is by logging in per ssh to 'machine1'
ssh user@machine1.company.xy
Unfortunately, git ist not installed on that specific machine. So a git clone like
git clone ssh://user@machine1.company.xy/path/to/repo <local-repo-path>
won't work. What I would have to do is to change to another machine 'machine2' where git is installed after having logged in to the network via 'machine1'. So to get the clone working I would have to execute a command like
ssh machine2
before actually executing the git command. Is there any way to do that? Something like a pre-clone hook maybe?
Is it possible to somehow pack the remote repository into a file (patch?), to copy that file onto the local machine and to clone from that file?
Looking forward to your hints and suggestions!