How to list all remote repositories in Git?

4

How to get a list of all remote repositories associated with a local Git repository?

    
asked by anonymous 30.07.2015 / 15:44

2 answers

1

Use the command git remote -v .

$ git remote -v
bakkdoor  https://github.com/bakkdoor/grit (fetch)
bakkdoor  https://github.com/bakkdoor/grit (push)
cho45     https://github.com/cho45/grit (fetch)
cho45     https://github.com/cho45/grit (push)
defunkt   https://github.com/defunkt/grit (fetch)
defunkt   https://github.com/defunkt/grit (push)
koke      git://github.com/koke/grit.git (fetch)
koke      git://github.com/koke/grit.git (push)
origin    [email protected]:mojombo/grit.git (fetch)
origin    [email protected]:mojombo/grit.git (push)

Source: git-scm.com

    
30.07.2015 / 15:44
7

Simple like this:

git remote

or

git remote -v

to list the URLs.

Documentation .

    
30.07.2015 / 15:47