$ git ls-remote
Run Code Online (Sandbox Code Playgroud)
结果是
fatal: No remote configured to list refs from.
Run Code Online (Sandbox Code Playgroud)
我定义了遥控器
$ git remote
Run Code Online (Sandbox Code Playgroud)
结果是
personal_remote
upstream
Run Code Online (Sandbox Code Playgroud)
小智 5
我们可以在命令中提供远程:
git ls-remote personal_remote
Run Code Online (Sandbox Code Playgroud)
命令在 git 版本1.9.1上对我有用