How can I allow anonymous push to a git repository over http?

前端 未结 3 1820
無奈伤痛
無奈伤痛 2021-01-01 03:20

I cannot find an example here: http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html

Is it possible?

3条回答
  •  离开以前
    2021-01-01 04:03

    Just don't put any AuthType in your Apache config (so no LocationMatch or Location elements).

    If you don't have AuthType , that means your Apache will simply pass along your git request to the cgi program git-http-backend.
    So no authentication will take place in that case: anonymous push will be possible.

提交回复
热议问题