Re: Clone to an SSH destination
From: Konstantin Khomoutov <hidden>
Date: 2016-06-15 22:54:37
On Mon, 3 Sep 2012 14:07:48 +0100 (BST) Mark Hills [off-list ref] wrote: [...]
quoted
But I'm actually more curious about why you need this in the first place, there's a bunch of devs where I work as well, but they never have the need to create new repos on some NFS drive in this manner.Without a command-line onto the filesystem (either local or NFS), how do you create a new repository for a new project? We have a fairly large team on a diverse set of projects. Projects come and go, so it's a burden if the administrator is needed just to create repos. Likewise, it's a step backwards for the developer to need to login themselves over SSH -- whereas 'git clone' is so easy to NFS.quoted
What are your devs doing when they do clone their current working directory to some NFS location, maybe there's a better way to do it.Most projects start as a small test at some point; eg. mkdir xx cd xx git init <write some code> git commit ... When a project becomes more official, the developer clones to a central location; eg. git clone --bare . /net/git/xx.git This is the step that is inconvenient if only SSH access is available.
Well, then it looks you want something like github. In this case look at some more integrated solution such as Gitlab [1] -- I did not try it, but it looks like you import your users there and then they can log in, add their SSH keys and create their projects. I also think gitolite has some way to actually use regular SSH users (or even users coming from a web server which is a front-end for Smart HTTP Git transport, doing its own authentication). This is explained in [2], and I hope Sitaram could provide more insight on setting things up this way, if needed (I did not use this feature). 1. http://gitlabhq.com/ 2. http://sitaramc.github.com/gitolite/g2/auth.html