Git over FTP
github.com
github.com
For my stuff, I'd definitely use this - but my first order of business would be to talk people into getting proper hosting so I wouldn't have to. Obviously that's not possible for freelance gigs. I'll definitely use it when I need to deploy to X host. Normally though I do quite a decent job of remembering which files I need to upload, but now I don't have to!!
Excellent stuff though! Thanks for creating this!
Here the git client includes logic to speak (translate to) ftp - which is great for this purpose.
What if you could say: `git push fleet master`
where fleet is a remote that translates git-speak into a deployment.
I realize - this is simply an imitation of Heroku. But, it may be interesting to flex git in this way: a code change protocol.
This and the recently discussed codeq could yield some very interesting possibilities.
Funny enough, I even did a blog post about it, though it was more about being able to do the equivalent of Rails environments than about the FTP thing: http://ertw.com/blog/2007/11/05/pushing-a-cakephp-app-from-d...
---
But I have hard time believing that there still are web providers that don't support SSH. Are there any? Good ones?
presume that rather then fighting them you could just use this. the public sector has taught me to look for technical solutions that negate human problems.
Fortunately I work at a company now where the software team rules with an iron fist and managers whimper behind their desks at the mighty shitstorm that happens when they put pointless walls up.
Our sysadmins tell us that for compliance reasons, any server-side processing is prohibited and right now the only way to update the site is a combination of RDP and sneakernet. But, until recently, we could update it via ftp. (they got in trouble for it during our last inspection, hence the sneakernet)
I've been playing with the idea of building a new site for our public affairs folks (the ones who are responsible for content) based on pelican or jekyll. Using a static site generator will get us around the no server-side problem, but there is still the problem of needing to transfer an entire site's worth of data avery time there is a small edit made. If we still had ftp access to our server, this would solve that problem.
The server hosting the public-facing site is across town (where the sysadmin works). The RDP step is for getting from our network to a non-public-facing machine that is physically right next to the public-facing machine.
Then, at two or three pre-appointed times during the week, the sysadmin transfers the contents of a folder onto a usb hard drive, and then eventually where it needs to go.
I suppose it's time to start reading the "Who is hiring" threads a little more closely.
Use ncftp or lftp. Problem solved.
But there never was a problem. Those ftp client have been around since the mid-1990's. He created a "problem" in order to play with a favorite software: git. This is typical behavior. git is clearly among the softwares, systems (Linux?) and devices (iPhone?) that have "fanboys".
So we can be sure we'll be hearing more about git. More fabricated "problems" to solve. Fanboys are blinded to all of history and all else besides their chosen infatuation.
Meanwhile, no matter how wonderful git is, I still have to install multiple versioning systems (cvs, svn, hg and git, at the bare minimum), because programmers can't agree on just one. Now _that_ is a problem.
They all do. There are MVS fanboys, VM fanboys, ITS fanboys (oh, yes), Windows fanboys, and so on, and so forth. It isn't the technology, it's the people.
But like a good song, if the radio stations overplay it, they can ruin the enjoyment of it for some listeners.
I think maybe we (nerds) all have the urge to be fanboys. We all have some software that we really like. Yet there are many examples of people who resist the urge to be a fanboy. Alas, the ones who give in to it are the ones who post their follies on the web and announce it to the world. The ones who don't are silent.
Seriously, other than it was a fun fidget, what was the point?
I'm sure there are a lot of cheap shared hosts that don't provide SSH, but there are hundreds that do, and the big players (who are the most reliable anyway) definitely do.
But honestly, I also have a hard time finding a use case for this. The question I ask my self over and over again: why not mount an FTP share and point your origin to it? In fact I did something similar when I was still in university. My desktop computer had my central gip repo, I either pushed to it locally via the FS or remotely via SSH.
Anyways, good thing to have git over FTP but I predict that it will never get traction because it seems to be in part a reimplementation of git?! (At least that's what the github page suggests because every basic git cmd is explained but with some git-ftp prefix... ;))
He encountered a problem: "Most of the low-cost web hosting companies do not provide SSH or git support, but only FTP." He then solved that problem and decided to make the work available to others.