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
6
votes
2 answers

how do I remove a remote branch when I get an error?

I have tried the following command and it fails. git push origin :next remote: error: denying ref deletion for refs/heads/next To blah.git ! [remote rejected] next (deletion prohibited) error: failed to push some refs to 'blah.git I am using…
user561638
  • 1,299
  • 3
  • 15
  • 26
6
votes
1 answer

The project disappear from gitweb after a git push

I use gitolite to host my source code, and setup a website using gitweb to display all my projects. At the beginning, all projects are shown correctly via gitweb, however, after I modified one project and do a git push, it disappeared immediately…
Vincent
  • 63
  • 5
6
votes
7 answers

Gitolite git clone error

I am trying to setup gitolite on my server (Macos server). I followed the instructions in the INSTALL document found here : http://sitaramc.github.com/gitolite/doc/1-INSTALL.html I installed the root method. I got everything setup (ssh pubkey…
skipper3k
  • 171
  • 1
  • 1
  • 8
6
votes
1 answer

GIT Smart Http - R any DENIED by fallthru

I have installed GIT on a Red Hat Linux server to be used for centralized repository and using HTTP username and password to control the user access from our Windows notebook. Based on the testing.git repo that comes as a sample repository,…
Edmund Koh
  • 61
  • 2
6
votes
1 answer

gitolite: allow to change only selelected files

How to configure git and gitolite to allow specific user to change just files that are inside specific directory? e.g. files in origin master branch: /dir1/ /dir2/file1 /dir2/file2 /dir3/file1 User kathrine, allow to change only /dir2/file1 and…
takeshin
  • 49,108
  • 32
  • 120
  • 164
6
votes
1 answer

Access control in Cgit

I would like to introduce access control to cgit once the cgi of cgit has been launched. The idea would be to list all the repos available in gitolite but enable/disable the directory listing based on user authentication. I managed to get access…
user2381132
  • 73
  • 1
  • 4
6
votes
1 answer

File-level access permission for Gitlab V5 without gitolite

Since Gitlab V5 has gotten rid of gitolite, but I still want to use gitolite's useful functions like directory/file-level, branch/tag-level access permission. Could anyone tell me how to achieve those functionalities within gitlab-shell of Gitlab…
6
votes
3 answers

Gitolite - remote: FATAL: fingerprinting failed for 'keydir/'

I installed Gitolite in my system to manage the repositories. When i try to add any of the client machine's public key, am getting the error "remote: FATAL: fingerprinting failed for 'keydir/". Would you please help me to resolve this problem.
Johnson Jo
  • 55
  • 1
  • 5
6
votes
2 answers

When Installing gitolite I get "/tmp/id_rsa.pub does not seem to be a valid ssh pubkey file"

I'm trying to install git and gitolite for our development in a CentOS linux server. Everything so far has ran ok except the step where I define the admin user for gitolite with this command: gitolite setup -pk /tmp/id_rsa.pub FATAL: errors found…
Roger
  • 2,912
  • 2
  • 31
  • 39
6
votes
1 answer

How to add a ssh key to gitolite server without using gitolite-admin?

I want to add a ssh key to my gitolite server from a new workstation. I can't do it through gitosis-admin, because I can't clone it, and I don't have access to my previous laptop containning the ssh-key with which I installed gitolite. How can I add…
jul
  • 36,404
  • 64
  • 191
  • 318
6
votes
1 answer

Can't create project or add ssh key on Gitlab

I just created a CentOS 6.3 VM and followed these instructions for the gitlab install: http://howto.basjes.nl/linux/installing-gitlab-on-centos-6 I've tried this installation with both gitlab v3.01 and v2.91. Here is what is working for me: I…
6
votes
2 answers

gitolite disallow access for directory on master branch but not on user branch

Consider the following repo: REPO/src/A/ REPO/src/B/ Is it possible by having only 1 repo to implement the following restrictions? On master branch, allow full access to maintainers role On master branch, disallow access to A but allow for B to…
Kostas Konstantinidis
  • 13,347
  • 10
  • 48
  • 61
6
votes
1 answer

Gitolite: adding user not working, and DENIED by fallthru when cloning as root?

I've managed to init an empty git repo on my NAS, and I attempted to add a new user by generating a new public key "foo.pub" and copying + pasting it into keydir/ and committing that and pushing it onto the NAS. First, the files: Here is my…
Jay
  • 1,084
  • 4
  • 18
  • 43
5
votes
2 answers

gitolite: can connect via ssh, can't clone

I installed gitolite on my server using this tutorial. This falls under the "non-root" method. It fails when I try to clone gitolite-admin back to my client. I get this error message: git clone gitolite@server.com:gitolite-admin Cloning into…
steve
  • 329
  • 1
  • 4
  • 9
5
votes
1 answer

How to version git&gitolite hooks?

Is there a possibility to nicely version and track git hooks? Can I safely have another (nested) git repository under the hook folder on server?
Olha Puzhay
  • 370
  • 2
  • 9