# how to restrict commit for a repo

4 messages from 2008-10-06 to 2008-10-06. Participants: Dilip M, Miklos Vajna.
Thread: https://gitlist.dev/t/15798

## Dilip M, 2008-10-06 12:09

Subject: how to restrict commit for a repo
Message-ID: <c94f8e120810060509w5eaa9138m92f1df36c9c36db6@mail.gmail.com>
URL: https://gitlist.dev/e/c94f8e120810060509w5eaa9138m92f1df36c9c36db6%40mail.gmail.com

```
Hi all,

I am a new user to GIT. Read few docs in web ..I want to know few things..

If I have a repository, how to prevent push from other repo's into
mine master's? I want to prevent the commits from all developers and
allow only few ppl to commit to masters..

Thanks for sharing the info on this...


-- 
dm

```

## Miklos Vajna, 2008-10-06 13:00

Subject: Re: how to restrict commit for a repo
Message-ID: <20081006130042.GQ23137@genesis.frugalware.org>
URL: https://gitlist.dev/e/20081006130042.GQ23137%40genesis.frugalware.org
In-Reply-To: <c94f8e120810060509w5eaa9138m92f1df36c9c36db6@mail.gmail.com>

```
On Mon, Oct 06, 2008 at 05:39:39PM +0530, Dilip M <dilipm79@gmail.com> wrote:
> If I have a repository, how to prevent push from other repo's into
> mine master's? I want to prevent the commits from all developers and
> allow only few ppl to commit to masters..

Have you seen contrib/hooks/update-paranoid?

```

## Dilip M, 2008-10-06 17:12

Subject: Re: how to restrict commit for a repo
Message-ID: <c94f8e120810061012p29210247sfd3c1b3c05e871ee@mail.gmail.com>
URL: https://gitlist.dev/e/c94f8e120810061012p29210247sfd3c1b3c05e871ee%40mail.gmail.com
In-Reply-To: <20081006130042.GQ23137@genesis.frugalware.org>

```
2008/10/6 Miklos Vajna <vmiklos@frugalware.org>:
> On Mon, Oct 06, 2008 at 05:39:39PM +0530, Dilip M <dilipm79@gmail.com> wrote:
>> If I have a repository, how to prevent push from other repo's into
>> mine master's? I want to prevent the commits from all developers and
>> allow only few ppl to commit to masters..
>
> Have you seen contrib/hooks/update-paranoid?

Miklos,  I am totally new to this tool ( don't know SVN too) . Can you
please consider giving some more info...or guiding me to some good
links...:)

Thanks in advance..

-- 
dm

```

## Miklos Vajna, 2008-10-06 19:58

Subject: Re: how to restrict commit for a repo
Message-ID: <20081006195856.GS23137@genesis.frugalware.org>
URL: https://gitlist.dev/e/20081006195856.GS23137%40genesis.frugalware.org
In-Reply-To: <c94f8e120810061012p29210247sfd3c1b3c05e871ee@mail.gmail.com>

```
On Mon, Oct 06, 2008 at 10:42:06PM +0530, Dilip M <dilipm79@gmail.com> wrote:
> > Have you seen contrib/hooks/update-paranoid?
> 
> Miklos,  I am totally new to this tool ( don't know SVN too).

That's good, since your mind is clear yet. :)

> Can you please consider giving some more info...or guiding me to some
> good links...:)
> 
> Thanks in advance..

In general, I would suggest reading the user manual and everyday.txt,
both are under Documentation/.

Second, read man githooks, and then you'll understand how to use the
mentioned hook.

HTH

```
