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

gitolite with non-default port

To clone a repository managed by gitolite one usually uses following syntax git clone gitolite@server:repository This tells the SSH client to connect to port 22 of server using gitolite as user name. When I try it with the port number: git clone…
Mot
  • 28,248
  • 23
  • 84
  • 121
11
votes
2 answers

Gitolite permissions on branches

I'm really at a loss here. I've read through quite a few examples, and tried all of them. The most basic ones work fine, but anytime I try to move to something a bit more complicated everything falls apart (even when I'm directly copying the…
mmorales
  • 107
  • 1
  • 2
  • 7
10
votes
3 answers

How to resolve a timeout exception when TeamCity fetches changes from a SSH Git repository

I've moved a Git repository from a shared folder on the network to a SSH server running gitolite. I've added a public/private key for TeamCity to use and pointed the VCS root at it. This all works OK as Test Connection is successful and my build…
GraemeF
  • 11,327
  • 5
  • 52
  • 76
10
votes
4 answers

Using gitosis to specify permissions per branch?

With gitosis, is it possible to specify write permissions so that users can push freely to branches with their own name, but not merge with the master? E.g. $USER/test1 .. $USER/test5 This mean you could host just one repository per project, rather…
Alexandra Franks
  • 2,982
  • 1
  • 19
  • 23
10
votes
4 answers

gitolite push error -> remote: ENV GL_RC not set

I am trying to push content from a workstation to a server. But it gives me an error. Please look at the following for command and error: Administrator@ganesh ~/testing $ git push origin master Counting objects: 3, done. Writing objects: 100%…
amar4kintu
  • 831
  • 11
  • 21
  • 32
10
votes
1 answer

GitSmartHTTP for gitolite repositories over Apache does not allow me to push

I am setting up a git-http-backend CGI script to handle my git.domain subdomain. The server is behind an ELB (elastic load balancer) on AWS cloud. My server config is as follows (my git hosting is handled by gitolite):
hjpotter92
  • 78,589
  • 36
  • 144
  • 183
9
votes
2 answers

in which file git stores commit history?

I want to read from the file where git stores commit history to store each commit information in my project's DB and display all histories in my project view
gasser
  • 279
  • 1
  • 4
  • 16
9
votes
3 answers

How to install hooks in gitolite

I've read all the documentation about hooks, similar questions and a lot of code but I can't track where is the error in my procedure. I need to install a simple hook in my gitolite installation (made with an rpm package on CentOS) so here is what I…
Fabio
  • 18,856
  • 9
  • 82
  • 114
9
votes
3 answers

Git: recommended setup for web development

For two weeks now I've been trying to implement Git at our office. Rather than lack of documentation it's the wealth of examples, tutorials and the various uses of git that have made me confused as to what is a recommended setup for web development.…
user852091
  • 3,070
  • 5
  • 23
  • 21
9
votes
3 answers

Deny READ of specific repository branches with gitolite

What I'm trying to achieve is the following: coworkers are in group @coworkers, clients are in group @clients. The Git repo shall be available to read and write for everyone, but there shall be special branches. i.e. I create a new branch "intern"…
Uncle Joe
  • 91
  • 1
  • 2
9
votes
1 answer

hook declined to update issue while deleting remote branch

I am getting some issue while deleting remote branch (using git). I have issued following command: git push origin :newpdo remote: Fatal: +refs/heads/newpdo myusername DENIED by fallthru
remote: error: hook declined to update refs/heads/newpdo…
Monu D
  • 111
  • 1
  • 4
9
votes
2 answers

Redmine + Gitolite - Issue with repository permissions and more

I have a Redmine installation on the same server as my gitolite repositories. In order to link my repository to my Redmine instance, I locally cloned the repo with the following command: git clone --bare --local…
Daniel Ribeiro
  • 10,156
  • 12
  • 47
  • 79
9
votes
4 answers

Gitolite on Ubuntu: No adminkey given

I have what I would call a "vanilla" install on Ubuntu Server 12.04LTS (downloaded and installed on the 15th) on Hyper-V. All seems well with Ubuntu. Synthetic NIC is great. No issues detected. My plan is to use it as a central GIT repository using…
RGI
  • 333
  • 4
  • 10
8
votes
1 answer

git ls-remote returns 128 on any repo

When using git, git ls-remote returns status code 128 while any other commands work flawlessly (push/pull/clone/etc). My repos are being managed with gitolite. I'm getting this error when trying to deploy rails app for the first time. When invoking…
Eimantas
  • 48,927
  • 17
  • 132
  • 168
8
votes
3 answers

Gitolite push error

I have problem with my git, when I push my changes, git sends me this error: git FATAL: split conf set, gl-conf not present for "name of repository" What Can I do? Or how can I caused this problem? Thanks for your help. Meph
Meph-
  • 657
  • 1
  • 8
  • 20
1 2
3
44 45