Large repository hosting recommendations?
Hey everybody,
So I have a ~2.9GB Git repository for my Unity project. It's been hosted on bitbucket, and that's worked well for me, but apparently they now have a hard 2GB cap. I don't mind spending money (within reason), or possibly switching version control software (though I would like to avoid it), but does anyone know of a good service for hosting this?
(Things I'd like to avoid: dropbox. I've already used that and it was not great with unity for quite a few reasons [import times on new computers, can't selectively choose what directories to share, etc])
Posted Jan 15, 2015, 3:38 AM UTC
16
If you know basic Linux admin, there's a cheap n' easy way to do it:
$ apt-get install gitgit:$ adduser git~git/.ssh/authorized_keys$ chown git:git authorized_keys; chmod 600 authorized_keysgituser$ mkdir someproject; cd someproject; git init --baressh://git@myserver/someprojectgit pushor whateverThis method doesn't scale very well but for a single repo with just one or two users it works fine. If anyone needs access to the repo, just add their public key to the
gituser'sauthorized_keysfile.As a note, RAM will matter depending on the size of your largest object (i.e. file or change to a file). If you have, say, a big, layered, 4K texture in PSD, those files can get up to a few hundred MB. If your server doesn't have enough free RAM to hold that entire file (or maybe it was half the file, I'm pretty sure it's the whole thing + a few MB), git will run out of memory. This has been a problem for us on shared hosting accounts (Dreamhost) that kill your processes if they take too much memory.
I didn't know that! I assumed Git was more efficient than that.
That said, if you've got files in your Git repo that are more than a couple hundred megabytes, you've got bigger problems...
I just did this actually! I ended up on digital ocean although I don't know how it compares to other services, but it seemed reasonable. So far so good, not too hard to setup and it's definitely a pretty good price. I'll probably slightly miss the admin interface stuff of bitbucket for adding public keys and such, but I didn't use that stuff all that much so it's not really that big of a deal.
I'm also a big fan of Digital Ocean, and I use it to host gitlab for my git needs. Works like a charm. :)
I didn't mention GitLab in my reply because it's quite a memory pig (~600MB of RAM required) so it won't run on a cheap VPS. Found this one out the hard way!
It's quite nice if you can run it though. Basically it's a privately-hosted GitHub.
Another alternative is Gitolite which lets you set up Git repos. No Web interface for that one though.