git -ftp works very well:
apt-get install git-ftp
in the application folder:
git config git.ftp.xxxx.url ftpservice.server.com/root/dir/for/ftp git config git.ftp.xxxx.user myUsername git config git.ftp.xxxx.password myPassword
it should be only if the target has been updated by another ftp client (it changes ftpservice.server.com/root/dir/for/ftp/ git-ftp.log to the current commit)
git ftp catchup --scope xxxx
// edit sources //
git commit -m "new version" git ftp push
and you can see what happens:
git ftp show
source share