Questions tagged [gitosis]

Gitosis is software to manage a collection of Git repositories on a server accessible by SSH, without creating local accounts for the users. It has not been updated since 2009. Gitolite is an actively developed alternative with a richer feature set. Use this tag for help with Gitosis installation and usage.

202 questions
4
votes
6 answers

Set up Gitosis, but can't clone

I've set up Gitosis on a remote Ubuntu box which I will refer to as linuxserver as my host in the following commands. I'm also connecting from a Windows box using Cygwin. I followed the instructions according to:…
Tim Rupe
  • 4,323
  • 1
  • 22
  • 23
4
votes
2 answers

Why do you need Gitosis or Gitolite?

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
Chris G.
  • 23,930
  • 48
  • 177
  • 302
4
votes
1 answer

Make a GIT repository read only for some users using gitosis

We are running a GIT repository using gitosis and we need to forbid the push to some people of the team. So i want everybody have read access to all repositories (got +10 repo and +20 machines where the users can do commit pull and push) I need to…
diego2k
  • 593
  • 2
  • 4
  • 15
3
votes
2 answers

How/Where do you store git repositories when working with multiple servers?

I'm fairly new to git, but I'm trying to set it up across all of our systems so that all projects are managed by git and gitosis. My question has to do with location of the actual repositories when considering the development / staging / production…
Matt
  • 5,547
  • 23
  • 82
  • 121
3
votes
1 answer

gitweb; hide specific repos

Hi I have recently set up a git server for my stuff. and it is working ok, I have installed gitweb which is also working fine. Except for the fact I don't seem to have any control over which repo's are being shown; specifically I DO NOT want my…
111111
  • 15,686
  • 6
  • 47
  • 62
3
votes
1 answer

Execute PHP from GIT post-update hook

I am using GIT on my server and I am trying to get a PHP file to be executed each time I update my repository. I'm trying to use my post-update hook to achieve this. this is the code I tried: #!/bin/sh echo echo "**** Pulling changes into Prime…
DivZero
  • 2,438
  • 2
  • 24
  • 23
3
votes
1 answer

Git post-update hook as a deploy management. Just like heroku

I want to git push to server repo, and then post-update hook will pull lastest repo to deploy folder, and restart the daemon. but git user can not access deploy folder and can't restart the daemon. How can I do git push deployment as heroku.
guilin 桂林
  • 17,050
  • 29
  • 92
  • 146
3
votes
1 answer

Gitosis post-receive hook to deploy repository getting public key errors

I have gitosis setup on my server and I'm trying to create a post-receive hook that will checkout changes to a working directory on the remote machine. Initially I got an error saying cannot open /home/user/source/testing-local/.git/FETCH_HEAD:…
ghickman
  • 5,893
  • 9
  • 42
  • 51
3
votes
1 answer

How do I completely remove Gitosis and then run Gitolite?

I removed the gitosis-admin folder, but naturally something is still screwed up when I run gitolite. I ran apt-get install gitolite and then gl-setup on the new .pub key I created and used to set up the passwordless access. The set up seemed to…
Lynn
  • 559
  • 1
  • 6
  • 22
3
votes
2 answers

Git asking for password from command line

I setup git and gitosis on a server to manage my repos. It's working properly for the initial shell account I set it up with, i.e. I can run: git clone git@MYSERVER:gitosis-admin.git But when I try to use the separate accounts I've created (via…
erich
  • 419
  • 2
  • 7
  • 11
3
votes
1 answer

How to add other users(windows) to gitosis

I just setup an git repository using gitosis. What I can't figure out is how to add other users. All tutorials I find only says "gather their public SSH keys". First of I tried to create the locally on my machine (not server) but I kinda figured…
fredrik
  • 17,537
  • 9
  • 51
  • 71
3
votes
1 answer

Manage http access to git repositories using gitosis

[Update 9/16/2010] After looking into this last night, I realized that my original question was really asking 2 separate things: 1) Is it possible to set the post-update hook for all remote repositories created by gitosis (i.e. not have to manually…
cdwilson
  • 4,310
  • 4
  • 26
  • 32
3
votes
2 answers

gitosis + git error: fatal: '/home/git/repositories/idea-generator.git' does not appear to be a git repository

I have tried to follow the instructions on how to use gitosis to manage my git projects. Other than one slight issue, I have installed gitosis successfully. The problem arises when I try to create my first git project (after having set-up and…
Kyle L.
  • 315
  • 2
  • 6
3
votes
3 answers

Backup gitosis repositories with rsync?

I have a standard gitosis setup that I would like to backup using rsync. When I try: rsync -avz git@192.168.0.2:/home/git git_origin/ or rsync -avz --rsync-path 'sudo rsync' 192.168.0.2:/home/git git_origin/ It copes no repository files. Pretty…
Karl
  • 1,585
  • 2
  • 13
  • 22
3
votes
6 answers

Why is the Git Plugin for Jenkins rewriting my local git repo url with extra slashes?

I'm having an issue right now trying to set up a Jenkins job (on one Windows server) to monitor an internal Git repo located on a Gitosis server (on a different Windows server). The url looks like this: ssh://git@192.168.0.1:relative_path/repo.git…
timmyonline
  • 193
  • 13