git-ftp is an opensource project that uploads via ftp all changes you push in git.
“I use git-ftp for my script based projects, mostly PHP. Most of the low-cost web hosting companies do not provide SSH or git support, but only FTP.”
The most easiest way to install git-ftp (in OSX) is via Macports.
For those unfamiliar with macports, i must to say that is the equivalent of apt-get in linux and one of its main advantages, besides being fast, is the fact it install the necessary dependencies automatically.
$ sudo port selfupdate
$ port install git-ftp
Also, if you prefeer, you can do it via brew:
$ brew install git-ftp
For more installation ways, checkout the git-ftp installation guide.
The first thing you must to do is configure the ftp account in your git repo, something like:
$ git config git-ftp.user username $ git config git-ftp.url ftp.domain.com $ git config git-ftp.password y0ur'p45w0rd $ git config git-ftp.syncroot path/dir
Now you can push to your shared server, that simple:
$ git ftp push