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

disable branch modification

From
ICIshaaq Chandy <ishaaq@gmail.com>
Date
Jul 18, 2009, 18:16 UTC
Message-ID
<24550469.post@talk.nabble.com>

Hi all, I've got a remote git repository that I want multiple users to be able to push to. This is all set up fine and working beautifully. The only thing is, I want to be able to lock down the branches on this remote repo, once set up users should not be able to:

1. Create new branches on it
2. Delete existing branches from it
3. push non-fast-forward commits to it.

I think I'll need to write a pre-receive hook for this, but before I embark on this, any helpful pointers would be appreciated.

Thanks, Ishaaq

-- 
View this message in context: http://www.nabble.com/disable-branch-modification-tp24550469p24550469.html
Sent from the git mailing list archive at Nabble.com.
Next: Andreas Ericsson
Message 1 of 3 in “disable branch modification”
  1. Ishaaq ChandyJul 18, 2009
  2. Andreas EricssonAug 4, 2009
  3. Alex RiesenAug 4, 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.