I'm following the instructions at Ubuntu Git Community Documentation
Success fully installed the git-core and gitosis packages on the server A
A# sudo apt-get -y install git-core gitosis A# gitosis user's password is gitflux Initialized gitosis with
A# sudo -H -u gitosis gitosis-init < ~/keys/git-dsa-public2.key Now checkout the gitosis-admin branch on local machine
B$ git clone gitosis@A:repositories/gitosis-admin.git Tried to add a new project to the repository by editing the gitosis.conf
[gitosis] [group team] writable = sweepshots members = git_id_rsa [group gitosis-admin] writable = gitosis-admin members = git_id_rsa and commit it back to the server. [there was no errors, but I'm not sure this worked correctly]
A#cat /srv/gitosis/repositories/gitosis-admin.git/gitosis.conf
is now showing
[gitosis] [group team] writable = sweepshots members = git_id_rsa [group gitosis-admin] writable = gitosis-admin members = git_id_rsa Committing to the first project
C$ mkdir sweepshots C$ cd sweepshots C$ git init C$ touch a_text_file.txt C$ git add . C$ git commit -a -m "Initial import" C$ git remote add origin gitosis@A:sweepshots.git (also tried git remote add origin gitosis@A:repositories/sweepshots.git)
C$ git push origin master Here I'm getting the error
fatal: 'sweepshots.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly Am I missing anything ?
-- UPDATE here is the directory listing at server A
root@testserver:~# cd /srv/gitosis/ root@testserver:/srv/gitosis# ls git gitosis repositories root@testserver:/srv/gitosis# ls gitosis projects.list root@testserver:/srv/gitosis# ls repositories/ gitosis-admin.git root@testserver:/srv/gitosis# ls git gitosis-admin.git root@testserver:/srv/gitosis#