git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: denying branch creation in a shared repository

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Oct 19, 2009, 08:43 UTC
Message-ID
<2e24e5b90910190143j5579d9dfle15df8625eb20a00@mail.gmail.com>
In-Reply-To
<ee22b09e0910190132u20931fb4i6a98fb87582a9e56@mail.gmail.com>
On Mon, Oct 19, 2009 at 2:02 PM, Mohit Aron <mohit.aron@gmail.com> wrote:
Show 8 quoted lines
> Hello,
>
> I'm setting up a shared repository and I'd like to prevent users from
> creating branches in it (they can of course create local branches in
> their own clone of this repository). How can I accomplish this ? I
> looked at 'git help config' and it seems I need something similar to
> the parameter receive.denyDeletes - this prevents deletion of
> branches.

That was the main reason I wrote gitolite (http://github.com/sitaramc/gitolite), though now it does a heck of a lot more than just that.

Scroll down a bit on that page for the README.

People have said pretty nice things about it on #git, and (subject to being in India time zone and the day job and all) I make sure I help out as much as I can. Email or #git, both are fine.

Being somewhat familiar with ssh and authkeys is good. Otherwise, *please* be sure to read http://sitaramc.github.com/0-installing/9-gitolite-basics.html for background

Previous: Mohit AronNext: Mohit Aron
Message 2 of 12 in “denying branch creation in a shared repository”
  1. Mohit AronOct 19, 2009
  2. Sitaram ChamartyOct 19, 2009
  3. Mohit AronOct 19, 2009
  4. Sitaram ChamartyOct 20, 2009
  5. Björn SteinbrinkOct 19, 2009
  6. Johannes SchindelinOct 19, 2009
  7. Howard MillerOct 19, 2009
  8. Johannes SchindelinOct 19, 2009
  9. Howard MillerOct 19, 2009
  10. Howard MillerOct 19, 2009
  11. Thomas RastOct 19, 2009
  12. Howard MillerOct 19, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.