Setup remote GIT repository via SSH? (No code access to the remote location)

I have a remote location I want to use as GIT repository. I have SSH access to that location and can copy files there. I can’t install or run the GIT executables on the remote location. Can I (and how) use it as the GIT repository for my team?

  • Multiple Bitbucket SSH accounts on same machine
  • Easy way to have 2 GitHub profiles on my computer?
  • “Could not open a connection to your authentication agent” ,ssh-add error even after ssh-agent started
  • Git Running SSH Under Different Port
  • Git clone using ssh - can't find repository
  • How do I add a remote Git repository to an Ubuntu Server?
  • Fix msysGit Portable $HOME location
  • git push returns “fatal: protocol error: bad line length character”
  • 2 Solutions collect form web for “Setup remote GIT repository via SSH? (No code access to the remote location)”

    That is impossible to implement. A Git repository requires a server-side Git suite.

    On the other hand, if it’s possible to provide an NFS or CIFS share, you could keep a Git repository on such a share — it would be acted upon by your local Git instance. Not that I like this approach though…

    I have a similar problem. I found a palliative solution:

    • Use SSHFS and Fuse to mount the remote location through ssh as a network drive;
    • The people having direct read/write access (me) clone the git repository with its local path;
    • Other people clone the repo with an http access.

    It’s not very efficient but it works.

    Git Baby is a git and github fan, let's start git clone.