Announcing… git-export!
February 12th, 2008 LukeI’ve been reading a lot about version control lately, and thinking that I should set up some sort of version control for myself.
At the suggestion of a friend from work, I set up Git on my home Linux server. It’s been a week or so now, and I like it.
The problem is, Git doesn’t have my personal killer feature of source control: FTP exports.
One of my main goals in using source control was being able to keep my projects under source control, and easily export different revisions to my production environment - this would happen over FTP, of course.
Upon further examination, it looked like Git couldn’t do this out of the box - it’s ‘export’ functions were limited to just pushing to other Git repositories.
But then a thought struck me: I know Perl. Why didn’t I just build my own tool?
And so I did. You can check out git-export at the git-export Google Code page.
At the moment, all it can do is export the current HEAD revision of the repository you are in, and then transfer it to a folder that you specify - but I’m planning on adding the ability to pass in the name of a specific commit(maybe even tag, later) so that you can export different revisions if need be.
Initially, it doesn’t work over FTP. But if you use curlftpfs to mount an FTP folder as if it were a normal folder and then use git-export, you’ll be able to transfer the files over FTP. I’ll write a tutorial on how exactly to do it soon.