gitolite

LinuxMint13搭建gitolite服务器

≡放荡痞女 提交于 2019-12-10 14:30:07
1.首先需要阅读 LinuxMint13安装无密码访问git ,在该博文中讲到客户端的id_rsa.pub在执行 ssh-copy-id -i ~/.ssh/id_rsa.pub git @localhost 以后,id_rsa.pub的内容就被拷贝到了服务器端的/home/git/.ssh/authorized_keys文件中。 在本篇博文开始的时候,需要另外选一台PC机,作为Git管理和授权者的操作机,和服务器机器已经开发者机器不同,需要在授权机生成一对单独公私钥对,执行以下命令: ssh-keygen -f ~/.ssh/gitolite_skwiki 生成两个文件分别是:~/.ssh/gitolite_skwiki和~/.ssh/gitolite_skwiki.pub 将gitolite_skwiki.pub拷贝到服务器的/tmp/目录,修改权限为777,命令为: scp ~/.ssh/gitolite_skwiki.pub git@服务器公网IP:/tmp/gitolite_skwiki.pub 此处因为我们事先做了git账号的免密码登录,所以不会遇到权限问题。 2.在授权机创建SSH主机别名: 编辑~/.ssh/config文件,没有该文件的话可以自动创建并编辑,输入以下内容: host GitoliteServer user git hostname 主机公网IP

Gitolite hook doesn't work

我们两清 提交于 2019-12-10 11:58:27
问题 I've set a GIT server on Windows with Cygwin and gitolite as it's described in the article. On a client Windows machine I use TortoiseGit . Right after the setup everything works ok. I can clone gitolite-admin repository with TortoiseGit using my SSH key and see the repository content. But right after I try to push a new content of /conf/gitolite.conf the server is not accessible anymore using my SSH key (it's removed from *authorised_keys* on the server by gitolite). The new content of

Can gitolite prevent branch deletes?

我的未来我决定 提交于 2019-12-10 11:53:34
问题 Is it possible to set up gitolite acls to allow a user to read, write, and push, but not to delete branches? 回答1: You should be able to use as a general rule for all repositories: repo @all RWCD dummy-branch = foo The ' D ' is a "deletion" type of permission, which will authorize the deletion of a dummy-branch , but will make all your existing RW+ rule deny deletion (because they don't have a ' D ') 来源: https://stackoverflow.com/questions/13275420/can-gitolite-prevent-branch-deletes

Cygwin and gitolite 3. How to set it up on windows?

一笑奈何 提交于 2019-12-10 11:43:13
问题 I was using this guide. Cygwin installation was good and all went well. Gitolite installation, however, is bad and i can't seem to find the solution to what should i do (neither google helps with that, because everybody link to the page i gave a link to, or everybody talk about old versions of gitolite.) I have reached the step No. 5 of the "Installing Gitolite" part. 1. I did the part with gitolite cloning ok. 2. The part with installing gitolite was different, but seems to have gone well.

Gitolite permissions: How use the “-” thing?

十年热恋 提交于 2019-12-10 11:38:37
问题 I'm trying to set up my Gitolite permissions but I'm not really sure how to use the - thing. Situation: I have two groups; @gatekeepers and @devs . I want both groups to be able to work in all remote branches except the master branch. They are supposed to be able to pull the master branch though. So far I have this, but I'm positive that it doesn't work: repo foo - master = @devs @gatekeepers RW+ = @devs @gatekeepers If I understand it correctly, this disallow the groups from doing anything

git push remote: warning: hooks.mailinglist has multiple values

一个人想着一个人 提交于 2019-12-10 11:27:20
问题 I have just upgraded from using gitosis to gitolite. Email notifications are working for all repos but for the gitolite-admin repo I get this waring when I push (the push is good): $ git push remote: warning: hooks.announcelist has multiple values remote: error: cannot overwrite multiple values with a single value remote: Use a regexp, --add or --set-all to change hooks.announcelist. remote: warning: hooks.mailinglist has multiple values remote: error: cannot overwrite multiple values with a

gitolite gitlist: Failed to resolve HEAD as a valid ref

这一生的挚爱 提交于 2019-12-10 09:32:26
问题 I've currently switched to gitolite + gitlist on my private server. While gitolite works fine, gitlist and also gitweb don't. While in gitlist i can see the testrepo and my own, gitlist tells me Oops! fatal: Failed to resolve HEAD as a valid ref. The config looks valid... [git] client = '/usr/bin/git' ; Your git executable path repositories = '/var/www/gitolite/repositories/' ; Path to your repositories ; You can hide repositories from GitList, just copy this for each repository you want to

How to find out what causes file permissions to change when checking out files with git?

浪尽此生 提交于 2019-12-10 06:56:10
问题 After pushing files to our server, the following post-receive hook is executed: #!/bin/sh export GIT_WORK_TREE=/home/user/www/ git checkout -f However, files get a very odd 600 permission, and folders 700 upon checkout. This is not what I expect (on our other servers we get 644 and 755 ). From this thread I understand that git does not set permissions, so git is not to blame. My question is: what is? How can I figure out what the cause is of this issue? I have already temporarily solved it by

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

情到浓时终转凉″ 提交于 2019-12-10 01:57:07
问题 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): <VirtualHost *:80> ServerName git.domain ServerAdmin hjpotter92+git@domain #SuexecUserGroup git git DocumentRoot /opt/gitolite/repositories/ PerlLoadModule Apache::Authn::Redmine SetEnv GIT_PROJECT_ROOT /opt/gitolite/repositories/ SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER # Have

Gitolite access repair

瘦欲@ 提交于 2019-12-09 17:44:24
问题 I have set up gitolite on my linux server and added my laptop to the gitolite-admin repository. I was forced to format my laptop (bad hard drive) so I need to figure out a way to regain access to my other repositories gitolite controls. It's worth mentioning, I have root access on my linux server, if that helps. I am not very proficient with SSH/public keys, etc, so if someone can help, I would greatly appreciate it. 回答1: If you have version 2.0.3 or later installed, you can use the gl-admin