我有一个 git 克隆存储库。
这个 repo 的目的是git log
,只要没有git log over ssh这样的东西。
$ git ls-remote
ac118076af0ca4c164a831b9e31b1a307747ec36 refs/heads/master
db1253eae8241aa0813d5a49880c41cd810216c2 refs/heads/production/version-2011.10
32c2dcad3133c8214c0d0e898e32b7a7a9f068cf refs/heads/release/version-2011.11
我想为远程机器设置一个只读分支git pull
(跟踪分支?!)。
$ git branch -tb version-2011.11 refs/heads/release/version-2011.11
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'refs/heads/release/version-2011.11' which can not be resolved as commit?
$ git checkout -tb version-2011.11 release/version-2011.11
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'release/version-2011.11' which can not be resolved as commit?
在未来:
- release/2011.11 将成为 production/2011.11
- 主 -> 发布/版本-2011.12
- 等等...
有什么建议么?