Questions tagged [gitolite]

Gitolite is software to manage a collection of Git repositories on a server accessible by SSH, without creating local accounts for the users. It provides per-branch control over read, write, and rewind/delete operation. It can also permit on-demand repository and branch creation, and allows delegating permissions administration to users.

Gitolite is an open source software to manage a collection of Git repositories on a server accessible by SSH, without creating local accounts for the users. It provides per-branch control over read, write, and rewind/delete operation. It can also permit on-demand repository and branch creation, and allows delegating permissions administration to users.

What is gitolite?

Gitolite is an access control layer on top of git. Here are the features that most people see:

  • Use a single unix user ("real" user) on the server.
  • Provide access to many gitolite users: they are not "real" users, so they do not get shell access.
  • Control access to many git repositories: read access controlled at the repo level, and write access controlled at the branch/tag/file/directory level, including who can rewind, create, and delete branches/tags.
  • Can be installed without root access, assuming git and perl are already installed.
  • Authentication is most commonly done using sshd, but you can also use "smart http" mode if you prefer (this may require root access to setup).

See its official documentation at gitolite.com.

673 questions
16
votes
4 answers

How to setup post-receive-email Git hook with Gitolite

I'm using post-receive-email hook from the Git distribution to send e-mails to certain users when Git repository is updated (hook invoked from post-receive). All my repositories were managed manually. Now, I get so many repos and so many users and…
Alexander Gladysh
  • 39,865
  • 32
  • 103
  • 160
16
votes
15 answers

GitLab requires git@localhost password to push to a repo

I'm trying to get GitLab up and running on my server. I followed the installation instructions at the gitlab github page and everything went well. The issue is, when I create a repo and try to sudo git push -u origin master I am prompted for…
DevinR
  • 383
  • 2
  • 3
  • 10
15
votes
4 answers

git push origin master:refs/heads/master what does this do

When I create a new repo on my gitolite repository I always have to enter the following command before I can start pushing code to the server. git push origin master:refs/heads/master What does it do ? My guess is that is has to do with the head…
MrNemus
  • 299
  • 1
  • 4
  • 13
15
votes
1 answer

Setting umask in Git / Gitolite

I have set up Git and Gitolite, and at some point I recall having seen an "umask" setting, in one of the configuration files. Does this set the permissions for all files I sync using Git? That is exactly what I need. Where can I find it?
user852091
  • 3,070
  • 5
  • 23
  • 21
15
votes
2 answers

gitolite: default remotes for new repository

I've installed gitolite (locally for now, to experiment) and it seems to work, except that new repositories are not tracking the remote by default after a git clone. If I remember correctly, when I clone a repository from github.com, it's already…
stivlo
  • 83,644
  • 31
  • 142
  • 199
15
votes
4 answers

gitolite installation issue

Has any one tryied the easy install option of gitolite? I am trying to install gitolite from my windows (workstation ) to a solaris box. [command used to install] ./gl-easy-install -q git sjcfsap1 git The command breaks at the following place…
vengateswaran c
  • 1,363
  • 3
  • 11
  • 12
14
votes
3 answers

Pushing existing git repository to gitolite

I've set up gitolite on my Ubuntu server and can add users, create empty repositories, clone the empty repository, add files, commit locally, and git push origin master to send it to gitolite. I can also create a project in XCode4, with its own git…
Zeophlite
  • 1,607
  • 3
  • 19
  • 36
14
votes
4 answers

TeamCity Git VCS SSH connection with Custom Private Key throws JschException: Auth fail

I can't seem to get TeamCity to read my Git (Gitolite) repository... I get an exception: List remote refs failed: com.jcraft.jsch.JSchException: Auth fail What I've tried: (I use PuTTY to export them to OpenSSH format) Use personal working(!!)…
baskabas
  • 333
  • 3
  • 5
  • 15
14
votes
2 answers

Ruby Gems with Gitlab no such file to load -- rb-inotify

I am using Gitlab and I am trying to follow these instructions to upgrade my gitolite v2 to v3: "If this issue occurs in 2.9.x you should reinstall gitolite. 1) backup all repositories. Just copy /home/git/repositories/* elsewhere. 2) Install new…
PhilBot
  • 748
  • 18
  • 85
  • 173
13
votes
2 answers

Moving gitolite server

I have a working gitolite server. However, I want to move it to an identical configuration, but on a bigger machine. Even though I have gitolite working, I am not sure about the strings under it. Mainly its relationship with ssh. I would like to…
jeremyvillalobos
  • 1,795
  • 2
  • 19
  • 39
13
votes
3 answers

How do I have to configure gitweb and gitolite so they'll work together?

I am trying to make gitweb work with gitolite... but unsuccessful so far. I am working on a RedHat Linux machine. A user called git exists. gitolite is installed under: /home/git Repository location: /home/git/repositories Please note that, gitweb…
Jee
  • 131
  • 1
  • 1
  • 3
13
votes
3 answers

How do programs like gitolite work?

I am curious as to how programs such as gitolite work -- specifically how do they interact with the SSH protocol to provide a tailored experience. Can somebody provide an example of how I might accomplish something like the following and where I…
user1813844
  • 141
  • 1
  • 5
13
votes
1 answer

Can Gitlab/Gitolite enforce correct username/email

Experimenting with git, I've setup Gitlab for a self hosted repository and it looks great. The one thing bugging me is that it appears anyone can make commits as anyone else (ie: spoof a commit). ie: I have my users setup in Gitlab with public key…
fiat
  • 15,501
  • 9
  • 81
  • 103
12
votes
2 answers

gitolite hook for specific repository

I don't understand how do I create a post-receive hook for a specific repository in gitolite (non-root install) My bare repository contains a website that should copy the working directory to the docRoot (GIT_WORK_TREE=/path/htdocs git checkout -f)…
Eyal R
  • 283
  • 1
  • 3
  • 7
12
votes
3 answers

Is good idea to use gerrit to host the git repository instead of gitolite or gitosis?

Originally I try to use gitosis to manage the git repositories in the company, and later notice gitolite is kind of enhancement of gitosis. And also I heard gerrit could be used for the same purpose, but from the description, gerrit is mainly used…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
1
2
3
44 45