On Thu, Feb 28, 2013 at 04:01:34PM +0600, Andrey Rahmatullin wrote:
> On Thu, Feb 28, 2013 at 10:45:35AM +0100, Tollef Fog Heen wrote:
> > > Has anybody had experience controlling access to git repositories, for
> > > example, to give users access but prevent some of the following
> > > dangerous operations?
> > > - prevent users pushing with the `--force' option
> > > (from the man page for git-push: "This can cause the remote repository
> > > to lose commits; use it with care.")
> > You can enable denyFastForward in the config and enable reflogs, that
> > should help with this.
> What about `push :branch` ?

»man git-config« isn't that hard:

receive.denyDeletes
    If set to true, git-receive-pack will deny a ref update that deletes the
    ref. Use this to prevent such a ref deletion via a push.

Also I think Tollef meant receive.denyNonFastForwards.

Kind regards
Philipp Kern

Attachment: signature.asc
Description: Digital signature

Reply via email to