git-daemon

What is git-daemon?

我与影子孤独终老i 提交于 2019-12-23 09:44:01
问题 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 "update-server-info" to allow the repository to be cloned to other collaborators. However, this does not let collaborators push their commits to the "--bare" repository. I created the "git-daemon-export-ok" file in my "--bare" repository, and ran the

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

与世无争的帅哥 提交于 2019-12-21 07:20:24
问题 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 master Counting objects: 6, done. Delta compression using up to 2 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (6/6) , then it hangs I am currently using git version 1.7.0.4 回答1: I have the same problem (Ubunut as git server 1.7.0

Why won't git-daemon serve my repository?

末鹿安然 提交于 2019-12-18 11:03:09
问题 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 /b/127.0.0.1/.git/ fatal: The remote end hung up unexpectedly How can I clone my repository over the git protocol? 回答1: You need to let git-daemon know it may export your repository: $ git init --bare /tmp/my-repo.git Initialized empty Git repository in

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

。_饼干妹妹 提交于 2019-12-10 18:46:11
问题 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 6 remote: Use of uninitialized value in require at hooks/update line 7. remote: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr

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

爷,独闯天下 提交于 2019-12-10 08:31:22
问题 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 daemon ? Note: there is no file at /var/logs . 回答1: If you still need and want to do it, I have found a way to do that: just create a bash script with execution permissions and tell the daemon to log its stuff into one or two files (if you want to log stderr

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

可紊 提交于 2019-12-05 16:14:45
问题 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' ## format_error="${format_bold}${format_red}%s${format_normal}" format_warning="${format_bold}${format_yellow}%s${format_normal}" ## stdout() { format="${1}" shift printf "${format}" "${@}" } ## stderr() { stdout "${@}" 1>&2 } ## output() { format="${1}" shift stdout "${format}\n" "${@}" } ## error() {

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

和自甴很熟 提交于 2019-12-05 12:21:01
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 daemon ? Note: there is no file at /var/logs . If you still need and want to do it, I have found a way to do that: just create a bash script with execution permissions and tell the daemon to log its stuff into one or two files (if you want to log stderr separately): #!/bin/bash # Git daemon launchd startup command. GIT_RO_USER="git-ro" # The user which has read only

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

心不动则不痛 提交于 2019-12-05 05:06:46
问题 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 network. Dockerfile: RUN git clone git://127.0.0.1/repo/ repo_dir But its not working, its looks like inside container its trying to connect localhost of container. So How to connect connect localhost of Host machine from Docker container? 回答1: its

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

南楼画角 提交于 2019-12-03 20:32:57
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 network. Dockerfile: RUN git clone git://127.0.0.1/repo/ repo_dir But its not working, its looks like inside container its trying to connect localhost of container. So How to connect connect localhost of Host machine from Docker container? its not working, its looks like inside container its trying to connect localhost of container. Yes, that is the

Why won't git-daemon serve my repository?

不问归期 提交于 2019-11-30 01:37:17
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 /b/127.0.0.1/.git/ fatal: The remote end hung up unexpectedly How can I clone my repository over the git protocol? You need to let git-daemon know it may export your repository: $ git init --bare /tmp/my-repo.git Initialized empty Git repository in /tmp/my-repo.git/ $ git daemon --verbose --base-path=/tmp --export-all /tmp/my-repo.git & $ git clone git://