Push a git branch to a remote server which has not got git installed

I have a shared hosting account which I have both SSH and FTP access to, hover I do not have root access, and the server does not have git installed.
I am curious as to how feasible it is to set up a watcher script that monitors whether I have committed/merged to branch master (locally), and upload the master branch via FTP to the remote server.

I could do it manually (without the watcher script), perhaps with a bash script (I’m running Linux Mint) if creating a watcher is too complex, but I have no idea how to do it either way.

  • Windows version of rxvt Backspace key doesn't work as expected
  • Shell script helper for git commits
  • Running .sh scripts in Git bash
  • Formatting Git Log for HTML
  • Where exactly Git Bash for Windows' prompt is defined?
  • How To Stop Git-Bash command on windows
  • Why does git keep throwing me a Merge warning message?
  • Git push is not 'pushing' a new branch
  • BitBucket: Host key authentication failed
  • Reset local git repository
  • your branch is behind by 2 commits
  • Using Git in a Company?
  • 2 Solutions collect form web for “Push a git branch to a remote server which has not got git installed”

    Looks like someone has already had the same conundrum, his solution is on Github.

    It’s all Pythony, but even if it doesn’t work for you, should give you and idea of where to start.

    And there is always sitecopy.

    You could try https://github.com/resmo/git-ftp#readme. Its a nice and simple shell scipt for uploading over FTP (no dependencies on any other languages). It does not require git to be installed on the server side.

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