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

URL Syntax Question

From
Jon Loeliger <jdl@jdl.com>
Date
Apr 1, 2008, 00:58 UTC
Message-ID
<E1JgUp6-0002Sc-Ts@jdl.com>
Folks,

On, for example, the git-clone man page, the stated URLs that are supported include these:

    git://host.xz/path/to/repo.git/
    git://host.xz/~user/path/to/repo.git/
and:
    ssh://[user@]host.xz[:port]/path/to/repo.git/
    ssh://[user@]host.xz/path/to/repo.git/
    ssh://[user@]host.xz/~user/path/to/repo.git/
    ssh://[user@]host.xz/~/path/to/repo.git
and:
    rsync://host.xz/path/to/repo.git/

In the first set, is the non-specified user form also supported? That is, this form:

    git://host.xz/~/path/to/repo.git/

In the second set, is it fair to generalize and say that they could all be respresented as this:

    ssh://[user1@]host.xz[:port]/[~[user2]/]path/to/repo.git/

Where user1 is, of course, the authorizing user and user2 is the file system accessed home directory user.

Lastly, how long before the deprecated and third class citizen, rsync, is actually _removed_? Or will it linger for all time? Any plans in the works there?

And is it also true that the trailing / isn't strictly necessary?

Thanks, jdl

Next: Junio C Hamano
Message 1 of 3 in “URL Syntax Question”
  1. Jon LoeligerApr 1, 2008
  2. Junio C HamanoApr 1, 2008
  3. Miklos VajnaApr 1, 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.