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

Re: How to hide a git repository?

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Nov 25, 2008, 18:38 UTC
Message-ID
<alpine.LNX.1.00.0811251327480.19665@iabervon.org>
In-Reply-To
<900638.56188.qm@web37904.mail.mud.yahoo.com>
On Mon, 24 Nov 2008, Gary Yang wrote:
> Do I have to create two git servers? One is for public to download the 
> released code. For example: gitpub.mycompany.com:/pub/linux/kernel.

The public can't generally use this URL, because it's an ssh URL, and they won't be able to connect with ssh. They can only really use git://gitpub.mycompany.com/pub/linux/kernel or something similar.

The normal pattern is to have R/W access with ssh and anonymous read access via git://...; you can then have multiple repositories on the same host, with the git server only serving the public one. All of them will be accessible to the ssh methods (restricted by the user's UNIX permissions on the files in those directories).

	-Daniel
*This .sig left intentionally blank*
Previous: Nicolas Morey-ChaisemartinNext: Thomas Koch
Message 7 of 13 in “How to hide a git repository?”
  1. Gary YangNov 25, 2008
  2. Heikki OrsilaNov 25, 2008
  3. Gary YangNov 25, 2008
  4. Bruno Cesar RibasNov 25, 2008
  5. Gary YangNov 25, 2008
  6. Nicolas Morey-ChaisemartinNov 25, 2008
  7. Daniel BarkalowNov 25, 2008
  8. Thomas KochNov 25, 2008
  9. Daniel BarkalowNov 25, 2008
  10. Jakub NarebskiNov 25, 2008
  11. Junio C HamanoNov 25, 2008
  12. Jakub NarebskiNov 25, 2008
  13. Junio C HamanoNov 25, 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.