'receive-pack': service not enabled for './.git'

前端 未结 3 1811
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 09:19

(Solved already, I\'m writing this for the next guy)

I was running git daemon on one computer and tried synchronizing with another.

On computer A, I ran:

3条回答
  •  一个人的身影
    2020-12-01 09:47

    I encountered this error, but the solution seems different for those using git-http-backend. (git push/pull/clone over http instead of ssh or git)

    This must be done on the remote server, and is best done on creation. (last line can be run independently if repo already exists / is in use)

    $ mkdir eddies  # MAKE folder for repo
    $ chown -R eddie:websrv eddies/  #ensure apache (webserver) can access it
    $ cd eddies/
    $ git --bare init --shared
    Initialized empty shared Git repository in /var/git/eddies/
    $ ls
    branches  config  description  HEAD  hooks  info  objects  refs
    $ git config --file config http.receivepack true
    

提交回复
热议问题