Sitemap
roy hasson

roy hasson

Cloud professional and developer. Surf, snowboard and play soccer when there is time

GitBox

Git driven DropBox clone

2 min readOct 25, 2013

In my day job I create a lot of documents and presentations that I share internally for review and feedback before sharing with my customers for their feedback. Many times I start off from previous documents, removing irrelevant pieces, shuffling around other sections and finally adding new content. At the end of the day I end up with tens of files documenting my evolution towards the final version to be published.

In my spare time I develop Web applications and services for fun. I mainly develop in Javascript and Node.js which I really enjoy. My familiarity with Git and Github is very functional but I’m by no means an expert. I recognize the value of a clean Git workflow to software development.

Get roy hasson’s stories in your inbox

Join Medium for free to get updates from this writer.

GitBox is an idea I came up with to alleviate the challenge of document creation and version control. Rather than updating documents and naming them based on a superficial version number or a timestamp which provides no hint as to what was actually changed, why not use Git for version control and commit comments and history. On top of being to locally manage documents, the user can push them to GitBox cloud server, GitHub or a locally hosted GitBox instance. This enables collaboration if the form of Git pull requests, GitHub inspired WebHooks for change notification as well as reduce the number of files people send and store in their inbox (I’m afraid to even check the size of my Oulook PST file).

So I set off to prototype GitBox. Thankfully Tim Caswell (@creationix) created JS-Git ( https://github.com/creationix/js-git ). So I created a simple process that monitored a working directory for changes. Every time a file or directory was added or updated a new commit was created. Later I was able to walk the commit history and restore older version of files and then go back.

That’s all nice and simple, the hard part comes when I started thinking about how I will use it in my day to day job. I needed a simple and quick way to checkpoint my changes at relevant places that made sense to me and to the document I’m creating. Issuing a commit every time Word decides to auto-save the document is going to create a massive commit history that’s unusable. I needed a better way. Sorry to disappoint you but I’m still thinking about this one…

Next post I’ll talk about how I created the initial prototype.

--

--

roy hasson
roy hasson

Written by roy hasson

Cloud professional and developer. Surf, snowboard and play soccer when there is time