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

Re: Can I forbid somebody to pull some branch or tag from my repo with git protocol?

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 17, 2008, 09:09 UTC
Message-ID
<7v1vw7p3r8.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<856bfe0e0812170103w1007cf4fs1e83e506c6dd909@mail.gmail.com>
"Emily Ren" <lingyan.ren@gmail.com> writes:
> I created a repository, and I don't want somebody to pull some branch
> or tag from my repository with git protocol. How can I do ?

By not putting that tag or branch in that repository (note that you can have a repository only to publish which is different from your main working repository). .

Previous: Emily RenNext: Emily Ren
Message 2 of 10 in “Can I forbid somebody to pull some branch or tag from my repo with git protocol?”
  1. Emily RenDec 17, 2008
  2. Junio C HamanoDec 17, 2008
  3. Emily RenDec 17, 2008
  4. Sverre RabbelierDec 17, 2008
  5. Emily RenDec 17, 2008
  6. Sverre RabbelierDec 17, 2008
  7. Emily RenDec 17, 2008
  8. Johannes SchindelinDec 17, 2008
  9. Junio C HamanoDec 17, 2008
  10. Johannes SchindelinDec 17, 2008

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.