Git Working with Remotes Show information about a Specific Remote


Output some information about a known remote: origin

git remote show origin

Print just the remote's URL:

git config --get remote.origin.url

With 2.7+, it is also possible to do, which is arguably better than the above one that uses the config command.

git remote get-url origin