Git Daemon on linux?
Posted
by bwawok
on Server Fault
See other posts from Server Fault
or by bwawok
Published on 2010-05-14T21:43:32Z
Indexed on
2010/05/14
21:44 UTC
Read the original article
Hit count: 437
Trying to set up a simple git-daemon on a linux server, and talk to it from a windows box.
On linux server:
- Make a folder /home/foo/bar
- CD to /home/foo/bar
- do a git --bare init here
- Do a touch git-daemon-export-ok
- CD to /home/foo
- Run the command git-daemon --verbose --reuseaddr --base-path=/home/foo --enable=receive-pack
On Windows Client w tortoise Git
- Do git.exe clone --progress -v "git://servername/bar" "C:\source\myFolderName" (works)
- Create file a.txt, add it to git, and commit (works)
- Do a git.exe pull "origin" master and then get fatal: Couldn't find remote ref master (makes sense, master isn't there yet)
- Do a git.exe push "origin" master:master and tortoise hangs forever without do anything
I realize why I can't pull from master yet on the remote branch.. but why can't I push my first commit into the remote repo? #4 really should work. Tried it both with tortoise and the mysysgit command line, both cases I hang forever. What am I missing? Server has no useful log
© Server Fault or respective owner