News for hackers. Stuff that matters.
Re:Dropbox as a Git Server by wrong_variable on Monday April 25, 2016 @11:24AM (#11564798)
> I ran out of private GitHub repositories a long time ago

why doesn't OP use bit-bucket ?

Re:Dropbox as a Git Server by StavrosK on Monday April 25, 2016 @11:39AM (#11564913)
I deployed Gogs at home and am loving it for things I don't want anyone else to have access to (mostly hobby projects with some secret keys in them), and Gitlab is just so fantastic nowadays that I'm adding projects to it instead of Github.

I wish they would fix their Github syncing (they can currently do it, but don't tell you their public SSH key so you can add it to Github as a pushing/pulling key).

Re:Dropbox as a Git Server by wrong_variable on Monday April 25, 2016 @11:40AM (#11564928)
Gogs is awesome :)

The only first world probem I have with Gogs is when you change branch deep into a directory it goes back to the top level view.

Re:Dropbox as a Git Server by cabargas on Wednesday May 04, 2016 @01:47PM (#11630133)
Thanks for the 'fantastic'!. We’re always trying to enable our users to integrate with more services/tools. I would love to have your input on this specific topic at https://gitlab.com/gitlab-com/support-forum/issues/695
Re:Dropbox as a Git Server by dineshp2 on Monday April 25, 2016 @11:59PM (#11569335)
I agree that Gogs works very well for small repositories.

Just a heads-up to anyone planning to use Gogs for large repos: Gogs is basically unusable for large repositories( such as the git repository itself and the linux kernel). The response times through the web UI can extend into a few minutes on small servers( I tried it with a 2 cpu and 2GB RAM server on DigitalOcean) and even on extremely powerful servers, the response times for large repositories is almost the same( I tried it on a 8 cpu and 16GB AM server). The reason for this is that Gogs lacks a cache system for git repos. You can follow the issue here[1].

[1] https://github.com/gogits/gogs/issues/1518

Re:Dropbox as a Git Server by DanielDent on Monday April 25, 2016 @02:17PM (#11566149)
It's not documented anywhere, so it's possible they use different keys for different users, but I was able to figure out they use this key for my account:

    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8cBZzV5gblDfbi41AxXC3fmfP8w1okfdNn9b6uXaj7i03NwhJ0n4Eg8Z+zgAtyrIa2bw9tzF8fyeYsnRbK5Paj059dn+XiXp3HOgcvHO9jy9C1+nomkRCM55fkMSGyiSByh2KSOiqqAusrTV9joig/Re30gYpxm8iCs20gbD717lZTT0A3dnrv7IQ86nbn9+5h+yMcok/AWEWS6Xq1NJGG5vav+vh+Nhlteo72qj77B/DFK1noUxcTgcy27xZOp1wrr7a6PaBu6wEMgKd2Oe9wQtzycaOYTAywHqtXnOE/w7FvhJen20GqtL9k4Zr94hxUNG7LJoiO6gNzo/0q24t [email protected]
Re:Dropbox as a Git Server by StavrosK on Monday April 25, 2016 @02:36PM (#11566273)
Hmm, Gitlab crashes when I try to add a mirror. How did you figure this key out, if I may ask?
Re:Dropbox as a Git Server by DanielDent on Monday April 25, 2016 @03:21PM (#11566614)
Bitbucket, which they also support, shows me the key they added to my repo.

Using the key they placed on my Bitbucket repo worked on one of my Github repos.

Re:Dropbox as a Git Server by StavrosK on Monday April 25, 2016 @09:41PM (#11568824)
Ah, thank you, I'll try that.

EDIT: Turns out that key doesn't work. How can I make them add a key to my BitBucket account? I don't see an option for that...

Re:Dropbox as a Git Server by sytse on Tuesday April 26, 2016 @06:02AM (#11570598)
GitLab shouldn't crash. We would like to help you resolve this, please email [email protected] and link to this comment to get help.
Re:Dropbox as a Git Server by JoshTriplett on Monday April 25, 2016 @01:19PM (#11565725)
> mostly hobby projects with some secret keys in them

For that, you might consider using something like git-remote-gcrypt, which encrypts data client-side before sending to the server.

Re:Dropbox as a Git Server by StavrosK on Monday April 25, 2016 @02:32PM (#11566245)
Yes, I use git-crypt, but I'm paranoid :)
Re:Dropbox as a Git Server by m4r71n on Monday April 25, 2016 @11:30AM (#11564840)
Or GitLab? I really don't understand why anyone would misuse Dropbox as a Git server...
Re:Dropbox as a Git Server by sytse on Monday April 25, 2016 @11:58AM (#11565092)
The OP seems to be interested in a SaaS (alternative for GitHub). For the people that think you always have to install GitLab, instead of running your own GitLab server you can also use GitLab.com with unlimited projects and collaborators, see https://about.gitlab.com/gitlab-com/
Re:Dropbox as a Git Server by oblio on Monday April 25, 2016 @01:27PM (#11565767)
Has Gitlab done any work on the high availability front? I remember reading a while back that gitlab.com was hosted on 2 servers, or something like that.
Re:Dropbox as a Git Server by quicksilver03 on Monday April 25, 2016 @06:22PM (#11567872)
They definitely stated that gitlab.com was running on one single server (plus a spare):

https://about.gitlab.com/2015/01/03/the-hardware-that-powers... https://about.gitlab.com/2015/03/09/moving-all-your-data/

It looks like this is no longer the case:

https://about.gitlab.com/2015/06/04/gitlab-dot-com-outage-on...

I haven't been able to determine if they're still storing the git repositories on NFS:

https://about.gitlab.com/2015/09/01/gitlab-dot-com-outage-on...

but if that's the case, I would be extremely nervous about the integrity and stability of their platform. I've had too many bad experiences with NFS mounts failing and general instability that I don't want to deploy it anymore.

Re:Dropbox as a Git Server by sytse on Tuesday April 26, 2016 @06:04AM (#11570612)
We have many servers now, see https://gitlab.com/gitlab-com/blog-posts/issues/214

We're still on NFS but are looking into Ceph https://gitlab.com/gitlab-com/operations/issues/1

Re:Dropbox as a Git Server by YorickPeterse on Monday April 25, 2016 @06:38PM (#11567960)
We're currently using 20 Azure instances to host GitLab.com. Git data is stored on an NFS server though I can't recall the exact setup from the top of my head.
Re:Dropbox as a Git Server by wyattjoh on Monday April 25, 2016 @11:39AM (#11564918)
Huge fan of Gogs here: https://gogs.io/ easilly run on any low powered machine/vps, super great for personal projects.
Re:Dropbox as a Git Server by jjuel on Monday April 25, 2016 @11:32AM (#11564855)
Or even GitLab

Edit: Apparently I was beat to the punch ;)

Re:Dropbox as a Git Server by gravypod on Monday April 25, 2016 @11:37AM (#11564898)
Or GitBucket hosted on your own hardware.
Re:Dropbox as a Git Server by hardwaresofton on Monday April 25, 2016 @11:33AM (#11564861)
I've never tried it, but couldn't you theoretically make another github account using your email (assuming you use gmail) with a "+whatever" in it, and use that to create an infinite number of new github accounts? I believe gmail redirects [email protected] to [email protected].

Of course, just using Gitlab is the more sensible option :)

[EDIT] - as lfowles pointed out, github doesn't private repos on free-tier accounts, so this is pointless.

Re:Dropbox as a Git Server by lfowles on Monday April 25, 2016 @11:49AM (#11565004)
Github has no private repositories in the free tier.
Re:Dropbox as a Git Server by wrong_variable on Monday April 25, 2016 @11:39AM (#11564908)
I would personally prefer gogits - since its simpler than GitLab.

But since I am a ghetto peasant without a static IP address I prefer to keep everything in what the cool kids call "The Cloud".

Re:Dropbox as a Git Server by hardwaresofton on Monday April 25, 2016 @12:05PM (#11565145)
I was referring to gitlab's hosted option (maybe I'm not the only one that didn't know this existed until recently) - https://gitlab.com/users/sign_in

I assume you're running your own VPS with gogits/gogs running on it?

Re:Dropbox as a Git Server by r3bl on Monday April 25, 2016 @04:20PM (#11567026)
I'm pretty much using a single private Git repository where I store all of the things I don't want to open source. When I'm the only one using that repository, I don't see the issue with doing so.