List of remotes for a Git repository?

后端 未结 6 1478
攒了一身酷
攒了一身酷 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:25

    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)
    

提交回复
热议问题