查看远程仓库 git remote

如果想查看你已经配置的远程仓库服务器,可以运行 git remote 命令。 它会列出你指定的每一个远程服务器的简写。 如果你已经克隆了自己的仓库,那么至少应该能看到 origin - 这是 Git 给你克隆的仓库服务器的默认名字:

$ git remote -v
origin    https://git.oschina.net/null_723_7877/git.git (fetch)
origin    https://git.oschina.net/null_723_7877/git.git (push)
#查看分支的详细信息
$ git remote show woms-git-test
$ git ls-remote

results matching ""

    No results matching ""