顯示遠端儲存庫

要列出所有已配置的遠端儲存庫,請使用 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)