Git repository not exported: fatal: The remote end hung up unexpectedly

前端 未结 3 556
死守一世寂寞
死守一世寂寞 2021-02-07 07:55

Setting up new git installations.

On one Windows laptop, I\'m running (under cygwin):

git daemon --base-path=/cygdrive/c/work/proj/  

相关标签:
3条回答
  • 2021-02-07 08:25

    You need to create the git-daemon-export-ok file in the .git directory. Don't commit it into the repository along with your code, but just create an empty file with that name along with the branches, hooks, info, etc. directories.

    0 讨论(0)
  • 2021-02-07 08:27

    i had this same issue, but for a different reason. if Ted's answer doesn't work for you, try adding "--enable=receive-pack" to your git-daemon options. this did the trick for me.

    0 讨论(0)
  • 2021-02-07 08:35

    If you are using gitosis you must add the two following lines in gitosis.conf (note: "repo" != "group") :

    [repo myrepo]
    daemon=yes
    

    When you push gitosis-admin, it will create git-daemon-export-ok automatically.

    If you try to create the file manually in the repository instead, it will keep disappearing after some time.

    0 讨论(0)
提交回复
热议问题