Difference between revisions of "Git"
From Blue-IT.org Wiki
(→Gitolite) |
(→Gitolite) |
||
Line 32: | Line 32: | ||
After that you have to recreate a new user git with: | After that you have to recreate a new user git with: | ||
useradd -d /home/git -b /home/git -m -s /bin/bash git | useradd -d /home/git -b /home/git -m -s /bin/bash git | ||
− | passwd | + | passwd git |
If you not do this, there is not valid shell, the userdir in /home is not created and there is no password! | If you not do this, there is not valid shell, the userdir in /home is not created and there is no password! |
Revision as of 07:54, 14 January 2012
Contents
HowTo
There are different ways to install git, gitolite, and webacces (e.g. [[#GitlabHQ|gitlabhq])] on Debian oder Ubuntu.
In any case: be sure to read the complete (!) gitolite documentation before you proceed. This article is mainly for Debian squeeze (6.0) server.
Mainly this boils down to:
- should use gitolite anyway
- which username you like to use by default to access the server: git, gitolite, whatever
- which port to use for ssh
- create a public or private repo
- have http access via smarthttp or gitlabhq
- install it manually or the "debian way" (apt-get), however the latter will give you automatic security updates
References
- How-To: Install a private Debian git server using gitolite and GitLabHQ
- Gitolite installation with gitweb and anongit in Gentoo and Debian
GitlabHQ
Fast, secure and stable solution based on Ruby on Rails & Gitolite.
Gitolite
Gitolite is the new framework around git. Easy project and user rights management.
Everything well documented online:
I had some problems (re)creating a user on my debian system (squeeze) after reverting a gitolite installation and deleting the user git with
userdel -rf git
After that you have to recreate a new user git with:
useradd -d /home/git -b /home/git -m -s /bin/bash git passwd git
If you not do this, there is not valid shell, the userdir in /home is not created and there is no password!
Gitosis
Is not activly maintained and developed any more. Use gitolite instead.