priestc priestc - 11 months ago 47
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 Source

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*** (fetch)
origin*** (push)