tags:

views:

51

answers:

2

I'd like to get an address of my remote repository, ideally one line only. Ideal would be something like

$ git remote show origin fetch_url --some-params-im-not-aware-of
git://github.com/ask/celery.git
+3  A: 

Simple: git config remote.origin.url

Tobu
discussion of source control is programming related, FYI :)
Jeff Atwood
Ah, sorry. Command-line APIs also seem to work on both sites.
Tobu
True. Thanks ;)
Almad
A: 

A simple way of showing the URLs that each of your remotes refers to is git remote -v. For example:

$ git remote -v
origin git://git.kernel.org/pub/scm/git/git.git
Mark Longair