Questions tagged [git-daemon]

37 questions
27
votes
2 answers

Why won't git-daemon serve my repository?

I set up .git in a directory on my local machine. I then run: mkdir a cd a git init git daemon When I attempt to clone the repository in a, I get the following error: mkdir b cd b git clone git://127.0.0.1 Initialized empty Git repository in…
yazz.com
  • 57,320
  • 66
  • 234
  • 385
13
votes
4 answers

Unable to push to git Repository. It hangs after "Writing Objects: 100%"

I am running git daemon with the following command. c:\cygwin\bin\git daemon --reuseaddr --base-path=/cygdrive/S --export-all --verbose --enable=receive-pack I am able to clone and pull updates but when I try to push I get $ git push origin…
JasonRed
  • 133
  • 1
  • 5
12
votes
2 answers

Git 'pre-receive' hook and 'git-clang-format' script to reliably reject pushes that violate code style conventions

Let's immediately start with a scrap of the pre-receive hook that I've already written: #!/bin/sh ## format_bold='\033[1m' format_red='\033[31m' format_yellow='\033[33m' format_normal='\033[0m' ## …
Alexander Shukaev
  • 16,674
  • 8
  • 70
  • 85
9
votes
4 answers

What is git-daemon?

What is git-daemon? Is it a default git function? I am trying to understand this so that I can host a repository on a server that people can push/pull from. So far I am able to clone a "--bare" repository onto an Apache server, and then use…
junsungwong
  • 303
  • 1
  • 3
  • 10
8
votes
1 answer

How to access the Host's machine's localhost 127.0.0.1 from docker container

I hosted Git daemon on local host i.e. '/usr/bin/git daemon --listen=127.0.0.1 --base-path=/opt' as a systemd service and I am trying to access it from docker container. I didn't mentioned the port because I don't want to expose the port to outside…
Dhairya
  • 743
  • 2
  • 11
  • 29
8
votes
1 answer

git server hosting using git:// protocol, unable to set SO_KEEPALIVE, no such file or directory

I'm on Windows using git version 2.12.2. I ran the following command within a git bash shell: $ git daemon --reuseaddr --verbose --informative-errors --base-path=/c/ /c/ On another git bash shell, on the same machine that's serving, I tried pushing…
solstice333
  • 3,399
  • 1
  • 31
  • 28
4
votes
2 answers

Starting git-daemon on OS X using launchd

I am trying to set up an internal git server using my OS X desktop (mostly as a test case). Everything works when SSH keys are involved, but I am currently trying to use git-daemon for read-only cloning. If I start up git-daemon in a terminal: sudo…
marshall.ward
  • 6,758
  • 8
  • 35
  • 50
4
votes
2 answers

Where are logs of git-daemon saved? (Git on windows using Cygwin)

I am running git-daemon as a windows service. (using Create Process) The command used in service is: git daemon --reuseaddr --base-path=/data/test_work/ --export-all \ --verbose --enable=receive-pack Where do I see the logs of git…
Mudassir Razvi
  • 1,783
  • 12
  • 33
3
votes
1 answer

Why do git commands just return 'error: daemon terminated'

I run git add . and then it does nothing for a while, and then says error: daemon terminated. This happens with all commands, not just git add How do I fix that? git status does show a bit of information about changes to be committed, but still…
Logos King
  • 121
  • 1
  • 6
3
votes
2 answers

How to git push from Git for Windows client to git-daemon running on ubuntu

I want to eventually run a git server on a Raspberry Pi but for now I am testing on ubuntu (running on VirtualBox VM). My development machine is Windows 7 64 bit and running Git For Windows v2.32.0.windows.2 (latest). I have setup the gitserver on…
Angus Comber
  • 9,316
  • 14
  • 59
  • 107
3
votes
3 answers

How to install git daemon on Ubuntu 10.04

I'm sharing my repository on my Linux nozim-desktop 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:17:33 UTC 2010 i686 GNU/Linux and I when I run: sudo -u git git-daemon --base-path=/home/git/repositories/ --export-all it says: sudo: git-daemon:…
Nozim
  • 587
  • 3
  • 14
  • 34
3
votes
0 answers

git daemon slow first request on ubuntu 14.04

I've got a couple of ubuntu 14.04.1 boxes running on an vmware esxi rig. On one server I am running a git-daemon: sudo git daemon --base-path=. --enable=receive-pack --export-all --verbose The other server is used as a git "client". Git version is…
kjn
  • 513
  • 3
  • 9
3
votes
1 answer

why my git can't push to my server by gitolite use git-daemon

when I use gitolite, ignoring git-daemon, I can do like git clone git://xxx/xxx,but when I push the project, it shows me the error: Total 2 (delta 0), reused 0 (delta 0) remote: Empty compile time value given to use lib at hooks/update line…
user1683012
  • 315
  • 1
  • 5
  • 14
2
votes
0 answers

Cannot clone repo from git daemon

Noob question. I can't really clone a very basic repo which I am serving through a daemon. On one terminal cd /repos $ git daemon --export-all --reuseaddr --informative-errors --verbose [12680] Ready to rumble [16420] Connection from…
2
votes
3 answers

git daemon over ssh - fatal: protocol error: bad line length character: SSH-

I'm created user "gitproxy" on the server side, added my ssh key to its authorized keys and trying to work with git daemon over ssh: gitproxy:~$ git daemon --port=2222 --verbose but have the error: On client side: o:~/git$ git clone…
Alexander
  • 73
  • 6
1
2 3