1

I want to create a git repository, that I can locally "change" (a normal repository), but, want to share it over http, but I want that it be a read-only repository for the people that clone it.

Is that possible? How can I do that?

thanks in advance.

4

1 に答える 1

1

If your server demands a valid user (ie an authenticated user) for "/git/repos/git-receive-pack", all write operations will be denied for anonymous user.

See SO question "git-http-backend" as an illustration of this configuration.

The other alternative is to install an additional module like Gitolite, which would enable a much finer control on who can read/write on any repo.

于 2012-10-02T06:23:00.393 に答える