Проблема, кажется, возникает из-за отсутствия у меня опыта работы с git 1.5, так как это работает очень хорошо, если я попробую систему с 1.7.Почему я в конечном итоге выбрал «нет ветки», и, что более важно, что я могу сделать, чтобы попасть в ГОЛОВУ «интересных_ответов»?
$ git --version
git version 1.5.6.5
git clone git@git.example.com:path/to/repo
Initialized empty Git repository in some/local/path/.git
<snip>
cd path
git branch -a
* master
origin/HEAD
origin/develop
origin/feature-cg-interesting_branch
$ git checkout feature-cg-interesting_branch
error: pathspec 'feature-cg-interesting_branch' did not match any file(s) known to git.
$ git checkout -- feature-cg-interesting_branch
error: pathspec 'feature-cg-interesting_branch' did not match any file(s) known to git.
$ git checkout origin/feature-cg-interesting_branch
Note: moving to "origin/feature-cg-interesting_branch" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
git checkout -b <new_branch_name>
HEAD is now at 6534d1d... [Commit message]
$ git branch
* (no branch)
master