gitolite

Auto deployment PHP script using Gitolite

狂风中的少年 提交于 2019-12-21 06:04:12
问题 i would like to setup auto deployment script to my testing server locally. i'm using gitolite on ubuntu desktop 11.04. i install gitolite using apt-get install gitolite, so it is create user gitolite and group gitolite. Now i setup my testing webserver using apache which has user and group ivan:ivan, and do git clone under that username. so all the files and folder have the same file owner ivan:ivan. i setup post-receive hooks under /var/lib/gitolite/repository/testrepo/hooks/ and have this

Gitolite git clone requires ssh password

纵然是瞬间 提交于 2019-12-21 02:45:36
问题 using Gitolite on a Ubuntu server. Have a project im working on that i need a particular syntax for the git command. Works great: git clone gitolite@servername:testing.git Asks for a password git clone ssh://gitolite@servername/home/gitolite/repositories/testing.git Ran from the same box, one after another. I can put in the password and it works. But I need to automatically work. Sounds like a problem with ssh pub/private keys. Any ideas? Update : Was a problem with file permissions. Not sure

git change default branch (gitolite)

北慕城南 提交于 2019-12-19 09:50:02
问题 I've got a repository with branches: master and devel. Master is the default one. I want to rename master into prod and make it default (and push it to the server). How to do this? Repository is hosted in gitolite (if it matters). 回答1: You need to have access to the server in order to change the symbolic-ref of HEAD to the branch you have pushed there ( prod ). git-symbolic-ref HEAD refs/head/prod I tentatively proposed a way to do that from a client at the end of "How do I change a Git

Using gitosis to specify permissions per branch?

落爺英雄遲暮 提交于 2019-12-18 20:02:10
问题 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 than hosting multiple repositories for the same project, specific to each user: project1-user1 project1-user2 project1-user3 ... project5-user1 project5-user2 project5-user3 回答1: Gitosis controls access to repositories, but not by branch or commit.

gitolite and file permissions

徘徊边缘 提交于 2019-12-18 09:18:13
问题 I have set up a gitolite repo on a ubuntu server which is intended to have developers clone/push projects we will be working on. I'm having a problem with the post-receive hook I have in a repo. I have a post-receive hook in a particular repo checking out to a particular directory on the server, in my case is /home/user/www/projects/. The problem is When an admin pushes a repo (git push origin), the hook checks out the project to the specified directory successfully and changes the

Can not add user with Gitolite

喜欢而已 提交于 2019-12-18 04:26:15
问题 I am newby with gitolite. I've install gitolite on a remote server. http://dev.remoteserver.com So I could git-cloning gitolite-admin.git. git clone ssh://gitolite@dev.remoteserver.com/gitolite-admin.git I wanted to add user and repo using gitolite. following is ordinary add user process. In the local repository, conf / keydir directory exists. open conf/gitolite.conf added below text. repo aproject RW+ = testid and, in local-mac, ssh-keygen -t rsa. added the public key in keydir/testid.pub

How to setup post-receive-email Git hook with Gitolite

半城伤御伤魂 提交于 2019-12-17 22:17:01
问题 I'm using post-receive-email hook from the Git distribution to send e-mails to certain users when Git repository is updated (hook invoked from post-receive ). All my repositories were managed manually. Now, I get so many repos and so many users and groups that I have to upgrade to some Git repository management system. I picked Gitolite. But I am a bit at loss on how to configure the e-mail notifications. Update: I will elaborate the question a bit: First question is: Where should I put the

Why do you need Gitosis or Gitolite?

亡梦爱人 提交于 2019-12-17 21:12:17
问题 Sorry for my ignorance - but what is the gain of having either Gitosis or Gitolite. I have a Synology NAS server running, but could I not just create a "bare" on any folder on the NAS? Regards 回答1: See my answer about "authentication and authorization": a DVCS (Distributed VCS) has none. Gitosis is dead (obsolete, not maintained). Gitolite is about authorization, not authentication. You will couple that authorization mechanism with authentication ones, using ssh or httpd. However, it has to

Gitolite git clone error

不羁的心 提交于 2019-12-17 09:45:29
问题 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

users are asked for password while using gitolite

喜夏-厌秋 提交于 2019-12-17 07:48:54
问题 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