List of remotes for a Git repository?

后端 未结 6 1481
攒了一身酷
攒了一身酷 2020-12-07 07:07

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?

6条回答
  •  时光取名叫无心
    2020-12-07 07:15

    If you only need the names of the remote repositories (and not any of the other data), a simple git remote is enough.

    $ git remote
    iqandreas
    octopress
    origin
    

提交回复
热议问题