gitolite

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

橙三吉。 提交于 2019-11-28 00:51:31
问题 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 contributors role. On personal branches, allow full access to A and B to creators. 回答1: With Gitolite V3 or 'g3' and its VREF, it should be possible to implement those restrictions. But the access you can manage is only for write-access. If a user can

gitolite: allow to change only selelected files

岁酱吖の 提交于 2019-11-27 16:43:12
问题 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 /dir2/file2 $kathrine: git clone git@example.com:test.git results in: /dir2/file1 /dir2/file2 Are there any per-dir directives in gitolite.conf or shall I configure git with new branch for this user? I just don't want graphics designer to have access

搭建Git服务器

ぃ、小莉子 提交于 2019-11-27 15:54:31
在 远程仓库 一节中,我们讲了远程仓库实际上和本地仓库没啥不同,纯粹为了7x24小时开机并交换大家的修改。 GitHub就是一个免费托管开源代码的远程仓库。但是对于某些视源代码如生命的商业公司来说,既不想公开源代码,又舍不得给GitHub交保护费,那就只能自己搭建一台Git服务器作为私有仓库使用。 搭建Git服务器需要准备一台运行Linux的机器,强烈推荐用Ubuntu或Debian,这样,通过几条简单的 apt 命令就可以完成安装。 假设你已经有 sudo 权限的用户账号,下面,正式开始安装。 第一步,安装 git : $ sudo apt-get install git 第二步,创建一个 git 用户,用来运行 git 服务: $ sudo adduser git 第三步,创建证书登录: 收集所有需要登录的用户的公钥,就是他们自己的 id_rsa.pub 文件,把所有公钥导入到 /home/git/.ssh/authorized_keys 文件里,一行一个。 第四步,初始化Git仓库: 先选定一个目录作为Git仓库,假定是 /srv/sample.git ,在 /srv 目录下输入命令: $ sudo git init --bare sample.git Git就会创建一个裸仓库,裸仓库没有工作区,因为服务器上的Git仓库纯粹是为了共享,所以不让用户直接登录到服务器上去改工作区

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

柔情痞子 提交于 2019-11-27 15:18:26
问题 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 ~/.ssh/config file: Host root HostName iptonas User root Port 123 Host foo HostName iptonas User foo Port 123 identityfile ~/.ssh/foo Grabbed a copy of gitolite-admin from NAS: git clone ssh://root/gitolite-admin I get: Cloning into 'gitolite-admin'...

git clone git@myserver:gitolite-admin fails

六月ゝ 毕业季﹏ 提交于 2019-11-27 13:19:55
问题 I am trying to get an git server repository running. I did install gitolite when running git info over ssh the server answers ssh git@myserver info hello Brian, this is git@hepide01pep1 running gitolite3 on git 1.6.3.2 R W testing When trying to clone the gitolite-admin repository I get the following error git clone git@myserver:gitolite-admin Cloning into 'gitolite-admin'... FATAL: R any gitolite-admin Brian DENIED by fallthru (or you mis-spelled the reponame) fatal: The remote end hung up

SSH Key asks for password

丶灬走出姿态 提交于 2019-11-27 11:39:56
问题 I stuck here now for like 2 Days a week. I've got a CentOs machine with Gitlab4 and gitolite. Everything worked fine for weeks, but suddenly last weekend something strange happend quite all binaries disappeared from the mashine ( like yum, python, ruby, mysql ect. ) i've really no clue how that can happn... After hours of reinstalling and compiling gitlab was working again. But i cant get the ssh keys between the gitlab and git user working. I already deleted and recreated the git user, set

Gitolite git clone error

别说谁变了你拦得住时间么 提交于 2019-11-27 08:47:00
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 authentication and default gitolite setup) $ssh git@server info hello admin, the gitolite version here is v1.5.9.1-27-gb97115f the gitolite config gives you the following access: R W gitolite-admin @R_ @W_ testing According to installation instruction I should be able to checkout a repository. But when I try to clone the gitolite-admin repositry I get an

In gitolite, how to reject pushes containing incorrect author info

做~自己de王妃 提交于 2019-11-27 06:36:22
问题 I intend to only accept the commits containning correct author information. like Author: Name<xxxx@xxx.org> in gitolite, is there a way to implement it? BTW, I use V2. Thank you in advance. 回答1: First, with Gitolite V3, it is called VREF, similar to an EMAIL_CHECK VREF. You can also use in g2 (Gitolite V2) "virtual ref" (precursors of g3 VREF), including the check author email one: the script is "g2/contrib/VREF/gl-VREF-EMAIL_CHECK". You would need to adapt that script to your own email

deploying a website/webapp via git/gitolite permissions error

橙三吉。 提交于 2019-11-27 06:31:11
问题 I've setup a development/testing server where developers can push repositories to a remote repo/webserver via gitolite/git. On the repository site everything works well and developers can use the server however: Problem: I want to deploy the code to an apache documentroot (chown'd apache:apcahe and chmod'd 755). I am following these instructions and when edit my post-receive hook as describe like so: #!/bin/sh echo "deploying to DocumentRoot" GIT_WORK_TREE=/var/www/www.example.com git

users are asked for password while using gitolite

筅森魡賤 提交于 2019-11-27 05:28:42
I have successfully created gitolite-admin.git repo on server (say) 10.107.105.13 . I can clone this repo on my local machine (say) 10.14.42.7 by issuing git clone gitolite@10.107.105.13:gitolite-admin . I had to add some lines in .ssh/config file to make sure that correct private key is used. Then I have added a user dilawar to conf/gitolite.conf file and a appropriate key dilawar.pub to keys folder. I have added and commited this commit to the gitolite-admin repo. I have also added one more entry in .ssh/conf file so that a correct private key is used. But when I try to do git clone dilawar