List of remotes for a Git repository?

git

Solution

You can get a list of any configured remote URLs with the command:

git remote -v

This will give you something like the following:

base    /home/***/htdocs/base (fetch)
base    /home/***/htdocs/base (push)
origin  git@bitbucket.org:*** (fetch)
origin  git@bitbucket.org:*** (push)

Problem

I have a Git repository. This repository has multiple remote repositories (I think). How can I get a list of the remote repositories that belong to said repository? Like `git list --remotes` or something like that?

Original source