顯示有關遠端儲存庫的更多資訊

你可以通過 git remote show <remote repository alias> 查​​看有關遠端儲存庫的更多資訊

git remote show origin

結果:

remote origin
Fetch URL:  https://localserver/develop/myrepo.git
Push  URL:  https://localserver/develop/myrepo.git
HEAD branch: master
Remote branches:
  master      tracked
Local branches configured for 'git pull':
  master      merges with remote master
Local refs configured for 'git push':
  master      pushes to master      (up to date)