Skip to main content

Why I Switched From Git to Microsoft OneDrive

I made the unexpected move with a string of recent projects to drop Git to sync between my different computers in favor of OneDrive, the file sync offering from Microsoft. Its like Dropbox, but "enterprise."

Feeling a little ashamed at what I previously would have scoffed at should I hear of it from another developer, I felt a little write up of the why and the experience could be a good idea. Now, I should emphasize that I'm not dropping Git for all my projects, just specific kinds of projects. I've been making this change in habit for projects that are just for me, not shared with anyone else. It has been especially helpful in projects I work on sporadically. More on why a little later.

So, what drove me away from Git, exactly?

On the smallest projects, like game jam hacks, I just wanted to code. I didn't want to think about revisions and commit messages. I didn't need branching or merges. I didn't even need to rollback to another version, ever. I just needed to write code. The only reason I needed anything at all is that I have my desktop machine, my work laptop, and my Windows tablet. It is especially because these projects are ones I tinker on in the little time between other things that its best to have them available any time and any where.

I had bad luck with Git in the past on those kinds of projects. If you only have a few moments to tinker, you likely don't have time to wrap up whatever change you were in the middle of. You don't have time to craft and push a commit, either.

I was already using OneDrive for the art assets of games. This worked well because I liked to draw on my tablet and it was a very fast and handle way to share assets between that and my main machine by just throwing it in a project folder on my OneDrive account, which auto-syncs between the machines. Once I already had a habit of creating those folders to manage art resources, when I was starting the next small game project it just became natural to start writing code in there too.

And, it has worked out surprisingly well. There's been a lot of benefits over Git. I don't have to explicitly commit and push, or pull on the other end, so changes I'm only halfway into are available on the other machine when I sit down and I can finish stuff back and forth. Its a really natural process. It is also kind of handy that I have everything available on my phone, if I want to pull up some game art to post somewhere during some downtime.

Of course, there are trade offs. The synchronizing being a background process can mean some delay and lack of predictability in when it runs, so there are times when I move directly from my tablet to computer, or the other way around, and have to wait a moment to get the files. But, that's the case when I have to do it manually, anyway, I suppose. It is just more obvious when you just wait, and can't actively do something about it.

Though I haven't used it yet, OneDrive did just add Version support in July. This is file-level, so I can't rollback a whole folder or project at once, but if I need an old version of a module or some sprites, I can trust I can get that now. This makes up for what was previously a major downside that I had only avoiding because I was doing this for small, throw-away projects.

So, maybe in the future, I'll ditch real version control for even larger projects.


amo said…
Why this OR that and not have both?
I have been using git (and some other versioning systems) on Dropbox for years now with no problems. Dropbox does pretty much the same thing as OneDrive - sync across machines with file-level versioning. It's awesome, so, why use git? Because for any larger (>1 file) project involving coupled components I would run into problems when (not if) I need to check for a previous version of the project as a whole if I only had file-level versioning. With file-level versioning, I can't simply check for the tests I had a month ago and see the exact code I had tied in with those tests.
The ability to do just that is something I hadn't really appreciated either, until I ran into exactly those problems.

It's also easy to run both levels of versioning in parallel with no additional cost than what you need to pay either way (issueing git commands etc.) to get the full benefit.
While, yes, this setup might seem overkill at first, however it's dead simple to run and doesn't just provide another layer of protection against data loss/corruption (not just depending on the availability of one service) like a backup but gives additional functionality that you wouldn't have with either tool.

Popular posts from this blog

Respect and Code Reviews

Code Reviews in a development team only function best, or possible at all, when everyone approaches them with respect. That’s something I’ve usually taken for granted because I’ve had the opportunity to work with amazing developers who shine not just in their technical skills but in their interpersonal skills on a team. That isn’t always the case, so I’m going to put into words something that often exists just in assumptions.
You have to respect your code. This is first only because the nature and intent of code reviews are to safeguard the quality of your code, so even having code reviews demonstrates a baseline of respect for that code. But, maybe not everyone on the team has the same level of respect or entered a team with existing review traditions that they aren’t acquainted with.
There can be culture shock when you enter a team that’s really heavy on code reviews, but also if you enter a team or interact with a colleague who doesn’t share that level of respect for the process or…

On Pruning Your Passions

We live in a hobby-rich world. There is no shortage of pastimes to grow a passion for. There is a shortage of one thing: time to indulge those passions. If you're someone who pours your heart into that one thing that makes your life worthwhile, that's a great deal. But, what if you've got no shortage of interests that draw your attention and you realize you will never have the time for all of them?

If I look at all the things I'd love to do with my life as a rose bush I'm tending, I realize that careful pruning is essential for the best outcome. This is a hard lesson to learn, because it can mean cutting beautiful flowers and watching the petals fall to the ground to wither. It has to be done.

I have a full time job that takes a lot of my mental energy. I have a wife and a son and family time is very important in my house. I try to read more, and I want to keep up with new developments in my career, and I'm trying to make time for simple, intentional relaxing t…

CARDIAC: The Cardboard Computer

I am just so excited about this.

CARDIAC. The Cardboard Computer. How cool is that? This piece of history is amazing and better than that: it is extremely accessible. This fantastic design was built in 1969 by David Hagelbarger at Bell Labs to explain what computers were to those who would otherwise have no exposure to them. Miraculously, the CARDIAC (CARDboard Interactive Aid to Computation) was able to actually function as a slow and rudimentary computer. 
One of the most fascinating aspects of this gem is that at the time of its publication the scope it was able to demonstrate was actually useful in explaining what a computer was. Could you imagine trying to explain computers today with anything close to the CARDIAC?

It had 100 memory locations and only ten instructions. The memory held signed 3-digit numbers (-999 through 999) and instructions could be encoded such that the first digit was the instruction and the second two digits were the address of memory to operate on. The only re…