gitosis

CentOS下的Git服务器:Gitosis

[亡魂溺海] 提交于 2020-03-10 11:45:48
我们很多人知道Git可能是从Github开始的。因为Github是如此流行,几乎所有写代码的人都知道它,以至于一提到Git就以为是Github,其实两者并没有多少关系,只是名字类似而已(这有点像Java和JavaScript)。 实际上,Git是一个分布式版本控制软件,原来是Linux内核开发者Linus Torvalds为了更好地管理Linux内核开发而创立的。虽然Git比SVN优秀很多,但它们最初被设计出来的想法是一致的,那就是版本控制。而Github却是一个网站,充当Git公共服务器的作用,只要拥有Github账号的人都可以把自己的项目托管在那里,如果你舍不得花些钱,你的项目是强制公开的。所以,Github就是一个通过Git协议为众多开发者提供代码托管的地方,同时它提供了很多特性,第一次使得大家可以这么公开地讨论起各自的项目。 上面之所以说这么多,是因为今天要讲的Gitosis有点类似Github的功能。什么意思呢?就是我们可以在自己的服务器上安装Gitosis,那么这台服务器就可以向Github一样对外提供代码托管服务了,这对于很多不愿意把自己的代码公诸于世的公司来说最好不过了。 这里以CentOS充当服务器为例给大家讲解一下Gitosis的安装和配置。同时,你还需要另外一台PC,当然Linux、Mac主机也是可以的。之所以要两台机器,是因为一台做服务器,另外一台充当客户端

Git: Cloning gitosis admin repo locally

£可爱£侵袭症+ 提交于 2020-01-15 14:24:18
问题 I set up a git repo with gitosis on my ubuntu 10.04 server using the following guide: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way It works fine and dandy, I can clone the configuration to my ubuntu 10.10 desktop computer, and commit changes there. Thats Ok, but I do most of my actual coding on the server. So I will need to clone the configuration/gitosis-admin.git repo and the other repos locally. git clone --local file:///home/git/repositories/gitosis-admin

hudson cannot access git repository

自闭症网瘾萝莉.ら 提交于 2020-01-15 12:46:08
问题 I am trying to get hudson to pull from a remote repository, I have set up an ssh trust relationship between the hudson user from /usr/lib/hudson/.ssh/id_rsa.pub to the gitosis keydir (like I have done for hundreds of other users) when I ssh in as hudson and run git clone git@gitserver:project I get You shall not pass! Enter Password: is there any reason the hudson user cannot clone from gitosis but every other user can? I have tried with a fresh install of hudson as well. HUDSON_HOME is set

gitosis asking for password

岁酱吖の 提交于 2020-01-13 09:36:09
问题 I have setup a gitosis server following instructions from here. It works fine for the initial user but I have recently added a new user. Here are the steps I took. Created an rsa keypair using ssh-keygen with filename johndoe. Then copied it to the keydir in gitosis admin repo. Edited the gitosis config file and added user johndoe to the list of members Commited the changes using git commit -a -m "what i did" Pushed the changes to the server After that I tried to check out with the new

Authenticating Gitweb with Gitosis without LDAP Auth?

大兔子大兔子 提交于 2020-01-03 12:31:55
问题 I found your article using Apache Auth with gitweb, gitosis. I was wondering if there was a way to do this if I wasn't using LDAP for authentication. We currently have a very large NIS domain which we use for authentication on all unix servers. We use this for SVN repositories through a UI, but for this case I am trying to meet a requirement of: Git Repositories Access Controlled - using Gitolite Online UI - using Gitweb UI must also have Access Control - not yet implemented I was thinking

Gitosis Error: Receiving 'Read Access Denied' on previously accessible repository

我的未来我决定 提交于 2020-01-03 07:09:57
问题 The Players I've been using git and gitosis for some months now, and am really loving both. Unfortunately, I have run into a problem accessing one of my projects with gitosis. The Set-Up I set up my git and gitosis installs on a hosted server account running Debian. I also set up four computers (two Ubuntu, two Windows) with separate rsa keys and successfully set each up to access the gitosis install. Everything worked smoothly for some time. Recently, though, I have been unable to access my

Gitosis Error: Receiving 'Read Access Denied' on previously accessible repository

浪子不回头ぞ 提交于 2020-01-03 07:09:29
问题 The Players I've been using git and gitosis for some months now, and am really loving both. Unfortunately, I have run into a problem accessing one of my projects with gitosis. The Set-Up I set up my git and gitosis installs on a hosted server account running Debian. I also set up four computers (two Ubuntu, two Windows) with separate rsa keys and successfully set each up to access the gitosis install. Everything worked smoothly for some time. Recently, though, I have been unable to access my

Git Server Frustration (Gitosis, Gitolite, etc)

拈花ヽ惹草 提交于 2019-12-31 08:47:08
问题 Please excuse the frustrating undertones as I have attempted to get this set up correctly multiple times to no avail (possibly and most likely due to my ignorance, but also likely due to the lack of thorough and concise documentation). I am trying to set up a git server so that I can share code amongst a small team of developers. Each developer may connect from multiple client PC's. I come from MS in the past so I am a bit spoiled in regards to development toolset , but it would be awesome if

gitosis-admin git push failed, exec hooks/post-update

本秂侑毒 提交于 2019-12-24 11:51:13
问题 I'm following this tutorial After this step: $ git commit -a -m "Allow jdoe write access to free_monkey" $ git push I always failed, with this error: fatal: exec hooks/post-update failed. This is from my /home/git/repositories/gitosis-admin/hooks/post-update : -rwxr-xr-x 1 git git 83 Mar 10 11:49 post-update So I change gitosis.conf manually from server for adding new repositories, and repos can work fine. I've googled what might cause it, I want to admin gitosis in proper way. Please Help

Where does gitosis store the working copies?

安稳与你 提交于 2019-12-24 02:48:10
问题 i wonder where gitosis stores the working copies of my repositories. I can see the filetree with the gitweb interface but cant find any working copy in /srv/gitosis/repositories/testrepo. Iam also able to push and clone to the repo. But how can i manage to write my deploy-script without knowing the path of the working copy? 回答1: gitosis stores repositories bare, that is, without a working directory at all. You will have to clone /srv/gitosis/repositories/testrepo somewhere else for deployment