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

Re: [RFC] git-remote

From
SBSanti Béjar <sbejar@gmail.com>
Date
Jan 5, 2007, 19:53 UTC
Message-ID
<8aa486160701051153h52a93c16k2b190f58e652cb2e@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.63.0701051448560.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On 1/5/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 18 quoted lines
> Hi,
>
> On Fri, 5 Jan 2007, Santi Béjar wrote:
>
> > * In "git remote add <name> <remote>": git could use the remote url to
> > deduce a <name>, like what git-clone does.
>
> That does not make any sense. For example, I track
> "git://git.kernel.org/.../git.git" and "192.168.0.128:gits/git.git".
> Something very similar applies to the host name: if you track multiple
> Linux repos, chances are that most of them are on git.kernel.org.
>
> I guess _if_ you have more than one upstream you are tracking (which is
> not the most common case, but hey, git-remote is for exactly that case) it
> is not uncommon to have similar urls.
>
> IMHO Junio's proposal is as good as it gets.
>
I was talking about the default name, so you could do:

$ git clone\ git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git $ cd linux-2.6 $ git remote add \ git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-2.6.git $ git remote show libata-2.6

Santi
Previous: Johannes SchindelinNext: Carl Worth
Message 8 of 16 in “[RFC] git-remote”
  1. Junio C HamanoJan 3, 2007
  2. Jakub NarebskiJan 3, 2007
  3. Shawn O. PearceJan 5, 2007
  4. Junio C HamanoJan 5, 2007
  5. Shawn O. PearceJan 5, 2007
  6. Santi BéjarJan 5, 2007
  7. Johannes SchindelinJan 5, 2007
  8. Santi BéjarJan 5, 2007
  9. Carl WorthJan 5, 2007
  10. Junio C HamanoJan 6, 2007
  11. Carl WorthJan 8, 2007
  12. J. Bruce FieldsJan 9, 2007
  13. Junio C HamanoJan 9, 2007
  14. Junio C HamanoJan 9, 2007
  15. Andreas EricssonJan 9, 2007
  16. J. Bruce FieldsJan 10, 2007

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.