TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hosting git repositories on your VPS

45 pointsby robermirandaalmost 12 years ago
Today I’ll show you how to setup a gitolite installation on a VPS with Ubuntu 12.04 LTS. To save myself some typing I’ll be using the following conventions:<p>A command prefixed by sysadmin$ is meant to be run in your local workstation.<p>A command prefixed by user@vpshost:path# is meant to be run in the vps under the specified user on the specified path.

8 comments

zrailalmost 12 years ago
This is pretty good. I wrote a similar article last year[1] that goes more in depth on things like automatic mirrors and various types of hooks. It was fairly well received on HN[2].<p>[1]: <a href="http://www.petekeen.com/hosting-private-git-repositories-with-gitolite" rel="nofollow">http:&#x2F;&#x2F;www.petekeen.com&#x2F;hosting-private-git-repositories-wit...</a><p>[2]: <a href="https://news.ycombinator.com/item?id=4707747" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4707747</a>
masnickalmost 12 years ago
I used gitolite on a VPS previously and it worked well, but when Bitbucket introduced free unlimited private repositories I switched.<p>IMO there is no reason to use gitolite now for unless you have (a) sensitive repos (with your own server, not a VPS of course), or (b) lots of private repos with lots of collaborators and you have no money for a Github or Bitbucket monthly fee and you aren&#x27;t a non-profit (I think non-profits can get a free Bitbucket account).<p>That said, I&#x27;m interested to hear about other gitolite use cases I haven&#x27;t thought of.
评论 #5970781 未加载
评论 #5970898 未加载
评论 #5971764 未加载
评论 #5971861 未加载
dotmanishalmost 12 years ago
We recently were at the same crossroads (choosing between &quot;github&quot; v&#x2F;s &quot;bitbucket&quot; v&#x2F;s own-hosted git repositories). I ran through the various options for own-hosted git repositories: (1) Gitlab, (2) Gitolite, and (3) Stash (10-user license for $10)<p>We ended up installing Stash as it seemed that it would reduce administration+maintenance by a tad bit (GUI + knowledgebase) and would be supported by a company responsible for bitbucket. Stash has been a pleasant experience so far.
评论 #5972586 未加载
gbrindisialmost 12 years ago
Does anybody know if there is something to seamlessly encrypt a git repository in case I don&#x27;t trust the git server provider (say a VPS)?
评论 #5971741 未加载
评论 #5972453 未加载
e12ealmost 12 years ago
Any particular reason why most of the examples uses &quot;sudo&quot; while already logged in as root?<p>Additionally, either you have some strange prompts set up somewhere, or made a few typos when copying and pasting; a couple of places you appear to be logged in as a someuser@&lt;...&gt;, but with a hash-prompt(#) -- usually reserved for indicating root&#x2F;super user access.<p>edit: Personally, I actually found the official documentation more helpful, even if it is very brief:<p><a href="http://gitolite.com/gitolite/qi.html" rel="nofollow">http:&#x2F;&#x2F;gitolite.com&#x2F;gitolite&#x2F;qi.html</a><p>In particular, it highlights that gitolite needs to run under a user, and needs a (your, the admin&#x27;s) pubkey for setup -- but there&#x27;s no need to generate a new one.<p>Behind the scenes, the pubkey used is added to the gitolite user&#x27;s authorized_keys-file (and so is any other keys added, when users are added).
tkorrialmost 12 years ago
One other option to gitolite is SCM-Manager[1]. It&#x27;s written in Java and can be deployed to an application server or installed as a standalone version.<p>I&#x27;ve used it for a year and I&#x27;ve been quite happy with it.<p>[1]: <a href="http://www.scm-manager.org/" rel="nofollow">http:&#x2F;&#x2F;www.scm-manager.org&#x2F;</a>
gee_totesalmost 12 years ago
A nice alternative to gitolite is gitosis[0]. I&#x27;ve found it much easier to use (in terms of adding users to repos) and faster to spin up new repos.<p><a href="https://wiki.archlinux.org/index.php/Gitosis" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;index.php&#x2F;Gitosis</a>
评论 #5974179 未加载
emanuelezalmost 12 years ago
Or, if you are a company and need some structure and ease of use, you can try contacting the guys at gitgear.com