can't clone git repos via http; info/refs not found

前端 未结 5 1653
不知归路
不知归路 2021-02-04 01:41

I am trying to make a git repository available for read-only access over http.

I am doing it the old-style way because git-http-backend is not available o

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 02:20

    Try the steps mentioned here on git-scm for http/s protocol.

    Basically, after doing the git clone --bare , you need to run mv hooks/post-update.sample hooks/post-update withing your bare repository and then do a git update-server-info once and then you should be able to clone the repo.

提交回复
热议问题