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?