Live data from Hacker News

How to Host Your Own Private Git Repositories

eklitzke.org

21–30 of 114 posts

Re: How to Host Your Own Private Git Repositories

#22
post #20
post #8

This is a good setup if you are the only one accessing the repo. If you need something a little bit more complex, I would highly recommend gitolite for managing repositories & users. Configuration is done via some INI/TOML-like files in a git repo. User public keys are stored in the same repo.

What about Gitlab? Isn't that more popular than gitolite?

I think the point here is providing a simple, lightweight solution. GitLab encompasses much, MUCH more than repository hosting.

Re: How to Host Your Own Private Git Repositories

#24

Does anyone know of a good AMI or Docker container that's got all this already set up, as far as it's possible? (I know it doesn't look complicated, but if there's a decent "standard" already out there...)

Gitlab has their own docker images, and it includes pretty much anything you could ever want out of a git service.

https://hub.docker.com/r/gitlab/gitlab-ce/

Re: How to Host Your Own Private Git Repositories

#25
post #8

This is a good setup if you are the only one accessing the repo. If you need something a little bit more complex, I would highly recommend gitolite for managing repositories & users. Configuration is done via some INI/TOML-like files in a git repo. User public keys are stored in the same repo.

...meanwhile, if your access control needs are less sophisticated, you can create the common group for all your git users, and use "git init --bare --shared=group" to set repository permissions correctly.

(You'll have to create separate UNIX shell accounts for all your developers sharing a common group with this setup, and this may or may not be a good idea.)

Re: How to Host Your Own Private Git Repositories

#26

Why do this when http://bitbucket.com will host private git repos for free? They also have have Large File Storage implemented as well. I use GitHib client using BitBucket for repo hosting with LFS and it works great, no need to host anything.

Why have pictures stored anywhere else when https://facebook.com will host private pictures for free?

Re: How to Host Your Own Private Git Repositories

#27
post #20
post #8

This is a good setup if you are the only one accessing the repo. If you need something a little bit more complex, I would highly recommend gitolite for managing repositories & users. Configuration is done via some INI/TOML-like files in a git repo. User public keys are stored in the same repo.

What about Gitlab? Isn't that more popular than gitolite?

Tried Gitlab: It's incredibly messy. Haven't tried Gitolite. One of my criteria with git repos is the education of new programmers, and I believe starting with a clean, lean UI gave me an initial positive impression that Git was simple (surprising ey?). I won't advertise for the product of my company, but there are a few good UIs around there.

Re: How to Host Your Own Private Git Repositories

#28

Why do this when http://bitbucket.com will host private git repos for free? They also have have Large File Storage implemented as well. I use GitHib client using BitBucket for repo hosting with LFS and it works great, no need to host anything.

Why do this when http://bitbucket.com will host private git repos for free?

Not everything needs to be in the cloud, and using any online service run by someone else brings some degree of reliability, security, privacy and longevity risk. Some of us just prefer to avoid those risks, and usually will unless there's some compelling benefit that outweighs them.

Re: How to Host Your Own Private Git Repositories

#30

Why do this when http://bitbucket.com will host private git repos for free? They also have have Large File Storage implemented as well. I use GitHib client using BitBucket for repo hosting with LFS and it works great, no need to host anything.

> Why do this when http://bitbucket.com will host private git repos for free? Because you never know when one of these online services will suffer an outage, suffer a security breach that leasks your private repos or email & credentials, or even lose your data entirely. The fact that the service is free doesn't mean that it doesn't come without potential issues.

But... you are using another online service to host the service yourself, no? And presumably they are also throwing in backups and redundancy of some sort... certainly it would take you a minute to set those things up, test them, monitor they are working... And isn't GitHub basically like everyone's resume these days?

I don't know... at some point you sort of just have to trust someone... be it the hosting provider, or the service provider. And I'm old... but I've had to untangle issues with CVS / VSS / SVN / etc... over the years I don't want anything to do with that crap -- if I can punt it to someone else to manage I'm OK paying some tiny subscription fee.

I think there's been one day in the last ~10 years when I couldn't use GitHub. To me that seems worth the $20 a month, or whatever they charge now.

Post reply on HN