私は git clone されたリポジトリを持っています。
このリポジトリの目的は、 ssh を介した git loggit log
などがない限りです。
$ 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?
将来は:
- リリース/2011.11 は製品版になります/2011.11
- マスター -> リリース/バージョン-2011.12
- 等々...
助言がありますか?