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

Re: The host:remote syntax mess

From
Junio C Hamano <junkio@cox.net>
Date
Nov 11, 2005, 01:46 UTC
Message-ID
<7vfyq4vtw3.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051111012216.GJ30496@pasky.or.cz>
Petr Baudis <pasky@ucw.cz> writes:
Show 7 quoted lines
>   I've just noticed that host:remote syntax seems to have been hijacked
> again and is now attached to the GIT protocol in
>
> 	Documentation/pull-fetch-param.txt
>
> (which BTW misses git+ssh). I said "seems", because connect.c still
> appears to assume it is SSH. So what is the plan?
Sorry about that.  Thanks for noticing.

There is no plan to change that. This documentation gotcha was just that yours truly stupidly merged documentation changes without reading every single line.

-- >8 -- cut here -- >8 -- [PATCH] Documentation: "host:path/to/repo" is git native over ssh.

You could also spell it ssh://host:/path/to/repo (or git+ssh, ssh+git), but without method:// is shorter to type, so mention only that one in the short and sweet list.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
diff --git a/Documentation/pull-fetch-param.txt b/Documentation/pull-fetch-param.txt
index 5c2888e..ddd5823 100644
--- a/Documentation/pull-fetch-param.txt
+++ b/Documentation/pull-fetch-param.txt
@@ -8,7 +8,7 @@
 - Rsync URL:		rsync://remote.machine/path/to/repo.git/
 - HTTP(s) URL:		http://remote.machine/path/to/repo.git/
 - git URL:		git://remote.machine/path/to/repo.git/
-			or remote.machine:/path/to/repo.git/
+- ssh URL:		remote.machine:/path/to/repo.git/
 - Local directory:	/path/to/repo.git/
 ===============================================================
 +
Previous: Petr Baudis
Message 2 of 2 in “The host:remote syntax mess”
  1. Petr BaudisNov 11, 2005
  2. Junio C HamanoNov 11, 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.