显示远程存储库

要列出所有已配置的远程存储库,请使用 git remote

它显示你已配置的每个远程句柄的短名称(别名)。

$ git remote
premium
premiumPro
origin

要显示更详细的信息,可以使用 --verbose-v 标志。输出将包括 URL 和远程类型(pushpull):

$ git remote -v
premiumPro    https://github.com/user/CatClickerPro.git (fetch)
premiumPro    https://github.com/user/CatClickerPro.git (push)
premium    https://github.com/user/CatClicker.git (fetch)
premium    https://github.com/user/CatClicker.git (push)
origin    https://github.com/ud/starter.git (fetch)
origin    https://github.com/ud/starter.git (push)