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.
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.