I’m wondering if I can configure a remote FTP branch in git so that I can just push to github and then push to deployment right after one another.
If I could, this would be awesome.
Otherwise, what other options are there for quick and easy deployment? Can git use ssh or anything like that? My host is SDF.org, and you can see the options they offer to validated users here: http://sdf.org?join
I am using another approach for deployment of my files over ssh/ftp: instead of using a git push, I pack the wanted files as a
.tar.gzarchive and upload that usingscpor the corresponding ftp commands. Seethe section “The Hook” in my blog entry. There, I find all wanted files using
findand pack them using tar:After doing that, you can simply upload the file using
scpand unpack with a command overssh:You can do the same thing using ftp. Check out the corresponding manual on how to upload files to ftp.
What I described above can be started automatically using hooks. I use it with
post-merge, for example.Another option is described in this answer. There are simple shell scripts to upload a file via
git-push.edit With ssh, you can also directly push to a bare remote repository.