# Per-branch receive.denyNonFastForwards?

2 messages from 2009-06-08 to 2009-06-08. Participants: skillzero@gmail.com, Michael J Gruber.
Thread: https://gitlist.dev/t/19733

## skillzero@gmail.com, 2009-06-08 05:20

Subject: Per-branch receive.denyNonFastForwards?
Message-ID: <2729632a0906072220n4dff5d39vaa863401c136c3c5@mail.gmail.com>
URL: https://gitlist.dev/e/2729632a0906072220n4dff5d39vaa863401c136c3c5%40mail.gmail.com

```
Is there a way to deny non-fast forward pushes to only certain
branches? I'd like for people to be able to force push to their own
branches on the server, but for the master branch (and maybe a couple
other important branches), I want to prevent it. I basically want a
per-branch version of receive.denyNonFastForwards. Is there a way to
do this?

```

## Michael J Gruber, 2009-06-08 08:43

Subject: Re: Per-branch receive.denyNonFastForwards?
Message-ID: <4A2CCF19.9000405@drmicha.warpmail.net>
URL: https://gitlist.dev/e/4A2CCF19.9000405%40drmicha.warpmail.net
In-Reply-To: <2729632a0906072220n4dff5d39vaa863401c136c3c5@mail.gmail.com>

```
skillzero@gmail.com venit, vidit, dixit 08.06.2009 07:20:
> Is there a way to deny non-fast forward pushes to only certain
> branches? I'd like for people to be able to force push to their own
> branches on the server, but for the master branch (and maybe a couple
> other important branches), I want to prevent it. I basically want a
> per-branch version of receive.denyNonFastForwards. Is there a way to
> do this?

The update-hook example should shows how you could guard specific
branches. If you want to make this user-dependent you may need to look
at gitosis.

Michael

```
