Difference between revisions of "Gitolite"

From ArchWiki
Jump to: navigation, search
(Created page with "[https://github.com/sitaramc/gitolite/wiki/ Gitolite] allows you to host Git repositories easily and securely. == Installation == {{AUR|gitolite-git}} can be installed with [[ya...")
 
(style corrections)
Line 1: Line 1:
 +
[[Category:Development (English)]]
 +
{{i18n|Gitolite}}
 +
 
[https://github.com/sitaramc/gitolite/wiki/ Gitolite] allows you to host Git repositories easily and securely.
 
[https://github.com/sitaramc/gitolite/wiki/ Gitolite] allows you to host Git repositories easily and securely.
  
 
== Installation ==
 
== Installation ==
{{AUR|gitolite-git}} can be installed with [[yaourt]].
+
{{AUR|gitolite-git}} is available in the [[Arch User Repository]].
  
 
== Configuration ==
 
== Configuration ==
Line 19: Line 22:
  
 
Copy all these *.pub files to keydir in your gitolite-admin repo clone. You can also organise them into various subdirectories of keydir if you wish, since the entire tree is searched.
 
Copy all these *.pub files to keydir in your gitolite-admin repo clone. You can also organise them into various subdirectories of keydir if you wish, since the entire tree is searched.
 
  
 
Edit the config file (conf/gitolite.conf in your admin repo clone). See the gitolite.conf documentation (http://sitaramc.github.com/gitolite/conf.html) for details on what goes in that file, syntax, etc. Just add new repos as needed, and add new users and give them permissions as required. The users names should be exactly the same as their keyfile names, but without the .pub extension
 
Edit the config file (conf/gitolite.conf in your admin repo clone). See the gitolite.conf documentation (http://sitaramc.github.com/gitolite/conf.html) for details on what goes in that file, syntax, etc. Just add new repos as needed, and add new users and give them permissions as required. The users names should be exactly the same as their keyfile names, but without the .pub extension
 
  $ nano conf/gitolite.conf
 
  $ nano conf/gitolite.conf
 
 
  
 
Commit and push the changes them:
 
Commit and push the changes them:
Line 30: Line 30:
 
  git push
 
  git push
  
 
+
== See also ==
== References ==
+
 
http://sitaramc.github.com/gitolite/index.html
 
http://sitaramc.github.com/gitolite/index.html

Revision as of 12:27, 6 November 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Gitolite allows you to host Git repositories easily and securely.

Installation

gitolite-gitAUR is available in the Arch User Repository.

Configuration

Add a user

# adduser --system --shell /bin/bash --group git --disabled-password --home /srv/git
# su - git
$ gl-setup id_rsa.pub

Do NOT add repos or users directly on the server! You MUST manage the server by cloning the special 'gitolite-admin' repo on your workstation:

$ git clone git@server:gitolite-admin

Add users

Ask each user who will get access to send you a public key. On their workstation generate the pair of ssh keys:

$ ssh-keygen

Rename each public key according to the user's name, with a .pub extension, like sitaram.pub or john-smith.pub. You can also use periods and underscores. Have the users send you the keys.

Copy all these *.pub files to keydir in your gitolite-admin repo clone. You can also organise them into various subdirectories of keydir if you wish, since the entire tree is searched.

Edit the config file (conf/gitolite.conf in your admin repo clone). See the gitolite.conf documentation (http://sitaramc.github.com/gitolite/conf.html) for details on what goes in that file, syntax, etc. Just add new repos as needed, and add new users and give them permissions as required. The users names should be exactly the same as their keyfile names, but without the .pub extension

$ nano conf/gitolite.conf

Commit and push the changes them:

git commit -a
git push

See also

http://sitaramc.github.com/gitolite/index.html