5

We are facing a problem, when git cannot be installed on remote machine. And we still require a git repository on there. We could use some php libs to do commits on repository without having git installed. But can we push against a workstation that doesn't have it? And how do we do that, if it's possible?

jayarjo
  • 16,124
  • 24
  • 94
  • 138

1 Answers1

5

You can clone and push your repo to a network share on the remote machine, in this case git doesn't need to be installed. You can also clone and push to an FTP server.

I'm doing this at work, and it works perfectly.

CharlesB
  • 86,532
  • 28
  • 194
  • 218
  • 2
    Thank you, I deleted my post and there seems to be a smart workaround for that via shares: http://stackoverflow.com/questions/5141205/git-repository-on-ftp-server Must be even easier with ssh. – three Feb 26 '12 at 13:09
  • I was intrigued by "push to FTP server", but it seems that git itself doesn't support this. I've found this though: https://github.com/ezyang/git-ftp. Is it what you had in mind when you wrote your advice? – jayarjo Feb 26 '12 at 13:12
  • @jayarjo for FTP I only read it was possible but haven't tried myself, I push to Smb shares (Windows environment) – CharlesB Feb 26 '12 at 13:17