r/Unity3D•
FatHat

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
neckro23•

If you know basic Linux admin, there's a cheap n' easy way to do it:

  • Get a Linux VPS with however much storage you think you'll need for the repo. RAM and CPU and bandwidth don't really matter. (I like RamNode, they're cheap)
  • Login as root
  • Install Git: $ apt-get install git
  • Create a user git: $ adduser git
  • Put your ssh public key in ~git/.ssh/authorized_keys
  • $ chown git:git authorized_keys; chmod 600 authorized_keys
  • Login as git user
  • $ mkdir someproject; cd someproject; git init --bare
  • Set your git remote on your local repo to ssh://git@myserver/someproject
  • git push or whatever

This 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 git user's authorized_keys file.

2
sc0neman•

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.

3
neckro23•

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...

1
FatHatOP•

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.

1
nobono•

I'm also a big fan of Digital Ocean, and I use it to host gitlab for my git needs. Works like a charm. :)

2
neckro23•

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.

1