priestc priestc - 1 month ago 6
Git Question

List of remotes for a git repository?

I have a git repository. This repo has multiple remote repositories (I think). How can I get a list of the remote repositories that belong to said repo? Some thing like

git list --origins
or something like that?

Answer

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)
Comments