threads / discuss / 15798

how to restrict commit for a repo

Subject: how to restrict commit for a repo

## tl;dr

4 messages between Oct 6, 2008 and Oct 6, 2008.

replies: 3people: 2as markdown or json

Dilip M· Oct 6, 2008, 12:09 UTC · lore
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· Oct 6, 2008, 13:00 UTC · re: Dilip M · lore

Re: how to restrict commit for a repo

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· Oct 6, 2008, 17:12 UTC · re: Miklos Vajna · lore

Re: how to restrict commit for a repo

2008/10/6 Miklos Vajna <vmiklos@frugalware.org>:
Show 6 quoted lines
> 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· Oct 6, 2008, 19:58 UTC · re: Dilip M · lore

Re: how to restrict commit for a repo

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

← back to recent threads