I've recently set up cygwin, git, and gitosis on my Windows Server 2003 box and am having troubles. I've followed just about every tutorial I can find to the letter, and have confirmed that my git account's authorized_keys table is getting updated when I push the gitosis-admin repository. I seem to be stuck, however, when it comes to creating a new repository.
I've seen many tutorials that recommend the following code (obviously the repo name changes), tried in both git bash and windows command line:
mkdir free_monkey
cd free_monkey
git init
touch README
git add .
git commit -m "Added blank readme"
git remote add origin git@my_server:free_monkey.git
git push origin master
When I execute the last line (no matter exactly what I send), it says "The remote end hung up unexpectedly": $ git push -v origin master:refs/heads/master Pushing to git@my_server:free_monkey.git fatal: The remote end hung up unexpectedly
My gitosis.conf file looks like the following:
[gitosis]
loglevel = DEBUG
[group gitosis-admin]
writable = gitosis-admin free_monkey.git free_monkey
members = git@my_server @all
Please let me know if I'm missing any information you need to help me debug this. Thank you!
One other thing that concerns me:
$ ssh git@my_server git
DEBUG:gitosis.serve.main:Got command 'git'
ERROR:gitosis.serve.main:Unknown command denied
Is that maybe the problem? If so, how do I fix that?