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

Re: Revamping the git protocol

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 20, 2005, 17:17 UTC
Message-ID
<Pine.LNX.4.64.0510201001460.3369@g5.osdl.org>
In-Reply-To
<4357CB57.3070802@zytor.com>
On Thu, 20 Oct 2005, H. Peter Anvin wrote:
> 
> git over ssh seems to be the obvious choice.

Yes, but Petr is right that there might be room for some lighter-weight "gits" secure protocol. One that doesn't necessarily require a whole user ID thing.

For example, let's say that you're not the maintainer of your machine, but you're in an environment where you are allowed to run daemons as yourself (at a university, for example). And you have a group of people who want to work together at a project, but they don't want to give write permissions to the world or their bigger group (group "student").

And git itself _does_ actually support that, already. You can use the standard "ssh:" thing (or just "hostname:pathname"), and the GIT_SSH environment variable to set up any tunnelling program you want. Then you can authenticate any way you want (and encrypt or not, whatever)..

So if somebody is in this situation, maybe we could have an example tunnel client/server thing that does this.

This is unrelated to the git protocol itself, although the "pack over ssh/tunnel" obviously uses all the same stuff for the actual transfer.

(It might also be worthwhile to have .git/config specify what program to use, so that you don't need a global environment variable. It might even be per-host, ie we could have git-send-pack and git-fetch-pack understand config language like

	[connect]
		program=[server.uni.edu]:mytunnel

or something. It shouldn't even be hard to do. Certainly simpler than doing a good authenticating tunnel).

		Linus
Previous: H. Peter AnvinNext: Johannes Schindelin
Message 8 of 10 in “Revamping the git protocol”
  1. H. Peter AnvinOct 20, 2005
  2. Junio C HamanoOct 20, 2005
  3. Petr BaudisOct 20, 2005
  4. H. Peter AnvinOct 20, 2005
  5. Petr BaudisOct 21, 2005
  6. Linus TorvaldsOct 20, 2005
  7. H. Peter AnvinOct 20, 2005
  8. Linus TorvaldsOct 20, 2005
  9. Johannes SchindelinOct 20, 2005
  10. Linus TorvaldsOct 20, 2005

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.