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
1
vote
2 answers

What permissions should be assigned for the "git" user in gitolite

I set up git and gitolite with some help from members on this forum and using these instructions: https://github.com/sitaramc/gitolite In the instructions one of the requirements is: a dedicated userid to host the repos (in this document, we assume…
RGI
  • 333
  • 4
  • 10
1
vote
1 answer

Gitolite many users having specific working directory and all are using one repository

I'm using Gitolite. This is my folder Structure: /var/www/demo.com/user1 /var/www/demo.com/user2 /var/www/demo.com/user3 I have created one repository named demo.git. I have created three gitolite users user1, user2 and user3. Now, my…
miet
  • 11
  • 1
  • 3
1
vote
1 answer

Cannot clone git repo from ubuntu server with TortoiseGit

I'm facing some problems while git clone a repo from my ubuntu server running gitolite. First, I got a public key from the developer who wants to clone the repository from the server. It was a rsa key created with putty. So I did the following to…
herom
  • 2,532
  • 29
  • 41
1
vote
2 answers

How can I host Git repositories and manage my content-hosting myself?

Things such as Github, Bitbucket, DropBox -- manages the content-hosting such as tickets and repo -hosting (DB not tickets but can be used to store repos). I want a solution where I manage myself the content-hosting of thing such as Git…
hhh
  • 50,788
  • 62
  • 179
  • 282
1
vote
1 answer

Copy files from one user to another permissions issue

I have a user 'git' that owns a git repository. I'm trying to setup a post-update hook that copies the files in the repository to /var/www/site/. I'm still getting a hang of users and permissions in linux, what is the best scheme for this situation?
nathancahill
  • 10,452
  • 9
  • 51
  • 91
1
vote
1 answer

GIT Server install failing on Ubuntu

I'm trying to install my own git server with these instructions. http://cisight.com/how-to-setup-git-server-using-gitolite-in-ubuntu-11-10-oneiric/ But I am get stuck at this point. git clone --verbose …
Devin Dixon
  • 11,553
  • 24
  • 86
  • 167
1
vote
0 answers

How to make branches readonly in gitolite2?

How can I declare branches readonly in gitolite v2? My current configuration is: @group1 = user1 user2 @group2 = user3 repo xxx R = @group1 # should make everything readonly per default RW fix = @group1 # this can be pushed…
snøreven
  • 1,904
  • 2
  • 19
  • 39
1
vote
1 answer

Moving to gitolite missing some branches

I've created a new empty gitolite repo into which I want to push a snapshot (on my workstation) of my original git repo. I followed the instructions to do git push --all followed by git push --tags. This seemed to work great, but I find that some…
torngat
  • 635
  • 1
  • 5
  • 16
1
vote
1 answer

Installed Gitolite using root (dumb), locked myself out of ssh

I tried following this guide to set up my Synology DS212J NAS: http://www.bluevariant.com/2012/05/comprehensive-guide-git-gitolite-synology-diskstation/ I tried using the user "git" to install originally, but ran into a lot of permissions/access…
Jay
  • 1,084
  • 4
  • 18
  • 43
1
vote
1 answer

ubuntu server with gitolite password

I am trying to setup gitolite on Ubuntu Server! It seems to work as I could clone gitolite-admin But when I try to issue the command on the client git clone gitolite@ubuntu-server:testing It ask for a password for gitolite, but my ssh password that…
Morten Hagh
  • 2,055
  • 8
  • 34
  • 66
1
vote
1 answer

Gitolite macro to expand to user name?

I have a config file with something like: repo qt/[a-zA-Z0-9_\.\-]+ C = @admins RW+ = @admins R = @users RW bob = bob As you can see every user (in group @users) can read all branches and I want bob to be able to create and…
HWende
  • 1,705
  • 4
  • 18
  • 30
1
vote
1 answer

Repairing Hooks and Permissions in Migrated Gitolite Repo

I had a gitolite pre-g2 repository I am attempting to get going on g3. I copied over the entire repositories folder, and started with a clean g3 conf file, and removed all the gl-perms files to have a clean slate. I am trying to get a couple repos…
Nikolaj Baer
  • 359
  • 1
  • 8
1
vote
1 answer

Getting data from Gitolite config file from bash script

I have a project where admins are listed in the gitolite.conf. For example: @admins = bettina bastian angela robert Now I want to get @admins inside a post-update hook. Is there a way of expanding this list?
ErikB
  • 111
  • 1
  • 4
1
vote
1 answer

Configuring public key of users via gitolite throws error

I have added the public key of a user and pushed to the server. But while running the gl-setup I have used like /tmp/id_rsa.pub instead of /tmp/rekha.pub. Now I have altered the file name and then again tried to run the gl-setup. It shows the…
thillaiselvan
  • 637
  • 6
  • 18
1
vote
2 answers

With a git hook, how do I force or check user identity?

I'm trying to setup a gitolite server. One problem that I find annoying in git is the username is not checked when committing code. This can lead to a possible "identity phishing" where user1 can commit some bogus code and set user2 as username.…
Ptitaw
  • 794
  • 3
  • 9
  • 18