9 ms·
Ask HN: Private Git repo hosting?
Do you use the paid GitHub plan, the free BitBucket plan, Gitlab, something else, or self-host?
Update: Removed the running totals. I'll summarize later, didn't expect this to be quite so popular.
- jacquesm 12y agoPaid github. And that's because I feel that when I pay for a service such as this they need to take my money in order to continue to survive. Anything else will sooner or later disappear.
- rswail 12y agogitlab... easy to set up and easy to use.
- drinchev 12y agoI had a gitlab instance on one of my computers that is online 24/7. It is a good solution, but my system was compromised by exploiting ruby / gitshell . Also it took way too much system resources to operate. Of course it's my responsibility to patch software I'm using, but after considering how much time I would need to run gitlab on my own host ( incl. server upgrade, security configuration, may be kernel + docker installation, etc. ) I decided to go to a paid repo at GitHub.
- webmaven 12y agoHad you considered GitLab's free hosting?
- drinchev 12y agoI didn't consider hosting from GitLab at all. The thing I considered was that GitLab is an open-source project, so I can modify it the way I want ( I actually contributed a super small patch ( https://github.com/gitlabhq/gitlab-ci-runner/pull/16 https://github.com/gitlabhq/gitlab-ci-runner/pull/16 ) . Anyway free hosting for me for a platform that you can install on your server has always been a no-option, because I want to control the content.
- webmaven 12y agoSo instead you'd rather choose a paid hosting account for a solution where you don't have that self-hosting option?
- webmaven 12y agoIs that their hosted option, or self-hosted?
- wlk 12y agoFor private/small projects free BitBucket is enough. For larger projects I have used self-hosted Gitlab which was running very well on relatively low spec server.
- nirix 12y agoI use BitBucket for small private projects. Never had any issues with it. For larger projects I'd go with a paid GitHub plan.
- 0x0 12y agoStarted on the free bitbucket and went to the paid bitbucket when we needed more than 5 users. With 200+ repositories, we've already exceeded what is available for purchase on github.
- logicuce 12y agoBitbucket's no limit on number of repos is what made us take the final call as well. You don't want to be restricted on that when you strive hard to have a more organized code base.
- mindcrime 12y agoWe use paid GitHub.
- deleted 12y ago[deleted]
- eldelshell 12y agoPaid GitHub. It's great, not really expensive, almost every developer knows how it works. Simply setting up your own Git repo would be more expensive than a few months of GitHub/BitBucket subscription.
- michaelmior 12y agoI'm not arguing about GitHub being great, but it really only takes a few minutes to spin up an EC2 instance and add a few user accounts with a shared folder. That's really all that's required to set up a shared repo.
- justincormack 12y agoPlus backups., security updates etc. OK you can not backup got as someone probably has a copy but...
- michaelmior 12y agoPlus assuming you're running an EBS-backed instance, it's already backed up. And it's easy enough to set your instance to automatically apply security updates. If all it's doing is hosting a few git repos, breaking things isn't really a huge concern. I love GitHub, but I wouldn't pay for it as a way of saving money, I'd pay for the extra features.
- michaelmior 12y agoPlus assuming you're running an EBS-backed instance, it's already backed up. And it's easy enough to set your instance to automatically apply security updates. If all it's doing is hosting a few git repos, breaking things isn't really a huge concern. I love GitHub, but I wouldn't pay for it as a way of saving money, I'd pay for the extra features.
- troels 12y agoYou can put the bare repo on a server and then use ssh. Dead simple and works great if you have a dev server where all developers have access to anyway.
- drinchev 12y agoYeah, pretty much that's what I also find the most appropriate. GitHub seems to be the second-best option ( sometimes the first ), but when you have unlimited non-paid private repos your mind goes also unlimited : I serve my important configuration files, various scripts, small personal projects, even my bank statements on a git repo, hosted on my personal server. But if every repo costed me 2$ per month, I doubt I would do that.
- talkingtab 12y agoI use my own git repo. I have a very small digitalocean server as well as a mac. I rsync the repos for backup. I have used github a bit but in my admittedly limited experience I see no benefit and therefore no need for anything else. Really it just seems trivial.
- modinfo 12y agoI use my own git repos with web cgit, on my dedicated ovh server.
- bruo 12y agoi'm with you! i can't be happier with cgit!
- drakmail 12y agoFree GitLab account on gitlab.com
- taspeotis 12y agoAtlassian Stash [1]. Gets regular updates and it plays nicely with JIRA and Bamboo. [1] https://www.atlassian.com/software/stash/whats-new https://www.atlassian.com/software/stash/whats-new
- nsfmc 12y agoif you already have a tiny vps running somewhere, take a look at gitolite. it's free, it supports multiple users, allows for complex access control, but has a tiny bit of a learning curve attached to it. on the upside, you learn a bunch about ssh in the process!
- rokche123 12y ago+1 for Gitolite. It is not that hard, more like an afternoon spent figuring things out. Great access control. It has no interface and no pull requests but that is not what git is about after all.
- _1009 12y agoFree Bitbucket, works just fine.
- Argorak 12y agoGithub private, both for my personal and my company account. Mainly because if the ease of giving others access, as most of my peers use it as well. I don't want to have multiple accounts at multiple services for that. I use Stash at one client and like it, especially when integrated with JIRA. Not that I have much love for JIRA, but if you track all details, it's the tool to go for.
- gbraad 12y agoBitbucket (free) and self-hosted without a fancy interface (linode, synced to digital ocean, dreamhost)
- lini 12y agoSelf-hosted Gitlab. We have more than 20 projects in it but only a few of them can be called large.
- yalue 12y agoWe also use self-hosted Gitlab. Its workflow is generally very sensible, the web interface is great, and it was easy to integrate with a homemade CI server (unfortunately their provided CI server wasn't nearly as easy to set up as Gitlab itself).
- Outlaw11A 12y agoPaid Github through the student license
- privong 12y agoI use both github (I recently finished a PhD and so had access to the education discount) and free bitbucket (a budding collaboration hosts their private code there). I am the sole user for most of my repos (mostly software for data analysis and LaTeX drafts for papers), so bitbucket's five user limit for free accounts has not affected my workflow in any way. I do use github for code I want to release to the public (e.g., code associated with publications, side-projects that I want to share), as it seems like there is more of an ecosystem there and the website seems more conducive to easily finding other peoples projects.
- hackerboos 12y agoGitlab on Digital Ocean using their image.
- nilved 12y agoHost your own server. It's easy, cheap and offers more features.
- robinhoodexe 12y agoI use a free BitBucket plan. The unlimited private repos are perfect for me, since I have a lot of small projects that I'll likely never finish. Also, i have Pass[1] set up with Git, so everything is backed up, under version control and is pushed to my Raspberry Pi so I can access all my passwords on my iPhone as well. Also, I use Git for large academic projects and papers in LaTeX, so public Github is not really ideal. [1]http://www.zx2c4.com/projects/password-store/ http://www.zx2c4.com/projects/password-store/
- ryanmacg 12y agoI used to use github but I’ve moved towards gitlab in the past while as my need for private repos dropped in scale
- shooster 12y agoI'll try to summarize my choice depending on org size. If it fits in BitBucket's free plan or you're solo, use that. It'll just work. If it doesn't fit in BitBucket's free plan, pay for GitHub (sorry BitBucket). If you need it behind your firewall and want to manage yourself, you can afford to (and should do) an eval of solutions like GitLab. If you need it behind your firewall and your org is already large and complicated, then try GitHub enterprise.
- noselasd 12y agoSelf hosted repos accessed with ssh on a vSphere CentOS VM
- giancarlostoro 12y agoAs a student if you have a .edu email you can get unlimited repos on BitBucket as well. I use BitBucket for projects I don't want to publish, and if it ever becomes something I wouldn't mind sharing I go public on GitHub and BitBucket.
- ef4 12y agoA benefit of private GitHub repos is that you're still nicely integrated with your open source dependencies on GitHub. For example, if you file an issue in your private repo that mentions an issue in some other public repo, you'll see your own reference when viewing the public issue.
- selamtux 12y agoi use amazon s3 for git repositories
- neom 12y agogitlab on digitalocean.
- akie 12y agoSelf-hosting with gogs.io. Awesome interface, easy to install (it's just a binary), uses minimal system resources and loads very very quick.
- izacus 12y agoYep, I'm using Gogs on my Synology NAS as well to self-host and mirror/backup my GitHub repositories.
- shvar 12y ago+1 for bitbucket
- IgorPartola 12y agoMy private repos go on a NAS share over SSH. git supports this perfectly.
- ishener 12y agoThere's really no disadvantage to using BitBucket...
- logicuce 12y agoI first tried bitbucket for my personal projects and then moved my work repos to it as well. Bitbucket charges per user and not per repo (the github model) which scales well while keeping cost in control.
- istoselidas 12y agoFor public repos and company's private repos I am using github. For personal private projects I use bitbucket.
- webmaven 12y agoOops. Guess the ability to edit your OP times out sooner than I remembered. Current summary stats for private repos: * Paid GitHub: 9 * Free+Paid BitBucket: 14 * Hosted+Self-hosted GitLab: 8
- ja27 12y ago+1 for free BitBucket plan
- pritambaral 12y agoGithub Education for college projects, Github open source for class projects (these benefit from sharing publicly), Bitbucket for private and freelance projects.
- segmondy 12y agogithub for public stuff, bitbucket for private.
- rhspeer 12y agoHad to switch from BitBucket to GitHub because BitBucket has performance issues dev team in Nepal. The 24 hour dev cycle is upon us and it's important to make sure these tools work on both sides of the planet.
- Artemis2 12y agoExperienced that to in France. Since we also use Bitbucket for code review, I just put a box with a good network connection as a secondary git server that synced code at each push.
- je42 12y agobitbucket for free private repos.
- jibsen 12y agoFree BitBucket for private repos, free GitHub for open source projects. I would have considered the micro plan if it weren't for the 5 repo limit -- I am (sadly) not rich enough to pay them just for being nice if I can get the number of private repos I need for free elsewhere.
- gonewest 12y agoSame here, plus github enterprise at work and a private install of stash for a different project at work.
- Shorel 12y agoI use Gogs. Fast, very low resource usage, easy to install.
- moepstar 12y agoI've set up a small-ish Gogs server on a RPi and i beg to differ on the "easy to install" - this might be true if you can just get the packages and install it, but once you try to manually set it up you'll see that the docs are lacking, big time. And even if you've got it all set up: how are you supposed to update your install? IIRC, i've read somewhere that you're supposed to wipe & reinstall the whole thing (take this with a grain of salt, haven't used my install that much as Gogs is still way buggier than, say, GitLab).
- Shorel 12y agoI just updated from 4.2 to 5.2. No wipe, just overwrite some files and that's it.
- edoceo 12y ago2x paid github, one for each company.
- theGREENsuit 12y agofree private bitbucket repos
- kcthota 12y agoBitbucket
- Veratyr 12y agoGithub costs money, Bitbucket gives me the same thing for free. Usually I use Bitbucket for private and if I open source something move it to Github.
- canterburry 12y agoI ended up getting an DigitalOcean $10/month box and set up GitLab (which is awesome). I figured for almost the same price of GitHub micro plan I could get unlimited repos by self hosting and could additionally use the box as a private maven repo host and maybe a build box (barely though).
- marchenkoigor 12y agoPhabricator has a nice set for privet repo