git之查看当前仓库的默认分支:
通过如下命令:git ls-remote --symref <远程仓库URL>,这将显示远程仓库的HEAD引用,即默认分支。
使用:
$ git ls-remote --symref ssh://git@gitlab.qinhong.com:9922/dev/test.net.git
ref: refs/heads/master HEAD
...
...
指尖上的记忆git之查看当前仓库的默认分支:
通过如下命令:git ls-remote --symref <远程仓库URL>,这将显示远程仓库的HEAD引用,即默认分支。
使用:
$ git ls-remote --symref ssh://git@gitlab.qinhong.com:9922/dev/test.net.git
ref: refs/heads/master HEAD
...
...