Live data from Hacker News

How to Host Your Own Private Git Repositories

eklitzke.org

1–10 of 114 posts

Re: How to Host Your Own Private Git Repositories

#3
post #2

I've been using Gogs happily for two years: https://gogs.io/docs/installation

Eh. The method described in this post (ie bare repositories on a filesystem and ssh transport) is perfectly sufficient for my personal use if I'm hosting. The minute there's a MySQL dependency I'm a hard pass...

I buy the need for the gitlabs of the world when multiple users show up, if only because managing credentials is a pain. But for single user use cases I wouldn't waste my time.

Re: How to Host Your Own Private Git Repositories

#4
post #3
post #2

I've been using Gogs happily for two years: https://gogs.io/docs/installation

Eh. The method described in this post (ie bare repositories on a filesystem and ssh transport) is perfectly sufficient for my personal use if I'm hosting. The minute there's a MySQL dependency I'm a hard pass... I buy the need for the gitlabs of the world when multiple users show up, if only because managing credentials is a pain. But for single user use cases I wouldn't waste my time.

Both gogs and gitea (forked from gogs) support using sqlite instead of mysql. This means there's no external database server to deal with, and since it's a small use set of private repositories it performs quite well.

Re: How to Host Your Own Private Git Repositories

#6
post #3
post #2

I've been using Gogs happily for two years: https://gogs.io/docs/installation

Eh. The method described in this post (ie bare repositories on a filesystem and ssh transport) is perfectly sufficient for my personal use if I'm hosting. The minute there's a MySQL dependency I'm a hard pass... I buy the need for the gitlabs of the world when multiple users show up, if only because managing credentials is a pain. But for single user use cases I wouldn't waste my time.

The instructions say that you can just use SQLite, though.

"Based on your choice, install one of supported databases or skip this step"

Re: How to Host Your Own Private Git Repositories

#7

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.

Or gitlab.com which offers private repos and also allows you to self host your own gitlab instance if you need to.

Re: How to Host Your Own Private Git Repositories

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

Re: How to Host Your Own Private Git Repositories

#10

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.

Many people (including me) like the idea of self-hosting because we feel more in control.
Post reply on HN