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

Re: git equivalent to svn info?

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 18, 2008, 05:50 UTC
Message-ID
<7v4p4e0zpg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080917224856.GT10360@machine.or.cz>
Petr Baudis <pasky-+ZI9xUNit7I@public.gmane.org> writes:
Show 11 quoted lines
> On Thu, Sep 18, 2008 at 10:13:34AM +1200, Francois Marier wrote:
>> On Wed, 2008-09-17 at 14:46 -0700, skillzero-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>> > Is there an easy way with git to get the URL of the repository that
>> > you cloned from, similar to what svn info shows for a subversion
>> > repository? I see it's stored in [remote "origin"]->url section of
>> > the .git/config, but I was hoping for an easy-to-remember command to
>> > display it.
>> 
>> I normally use "git remote show origin"
>
> You can also get a quick overview with git remote -v.
Ah, that reminds me...

It is Ok to have more than one URL defined for a remote if you use that remote for push, but "git remote -v" complains, like this:

    $ git remote -v
    warning: Remote builders has more than one URL
    builders        box-fc5:git/
    ko-private	m.kernel.org:git/

when I have 3 URLs (box-fc5, box-fc7 and box-fc9) for "builders" remote to push into.

Could somebody fix this, please?
Next: Michael J Gruber
Message 1 of 4 in “Re: git equivalent to svn info?”
  1. Junio C HamanoSep 18, 2008
  2. make "git remote" report multiple URLsMichael J Gruber, Sep 18, 2008
  3. Junio C HamanoSep 19, 2008
  4. make "git remote" report multiple URLsMichael J Gruber, Sep 22, 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.