显示有关远程存储库的更多信息

你可以通过 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)