How to list all remote repositories in Git?

Asked

Viewed 3,954 times

2

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

2 answers

9

Simple as that:

git remote

or

git remote -v

to list the Urls.

Documentation.

2


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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.