I have a curious issue with a branch in github that is on my remote, e.g.
$ git branch -r
...
adler/issue-761__NLM
...
But when I try to checkout the branch, I get an error
$ git checkout issue-761__NLM
error: pathspec 'issue-761__NLM' did not match any file(s) known to git.
I have tried git fetch
etc, but it does not seem to resolve the issue. Curiously, I can explicitly checkout the branch from the remote, but this puts me in a detached head state
$ git checkout adler/issue-761__NLM
...
HEAD is now at 94df12a... CONTRIB: Updates to NLM functional
How do I go about to resolve this issue so that I can check out the branch locally and work on it?
Edit: I've been told that is is a duplicate of How do I check out a remote Git branch?. That is not the case, specifically I can in fact perform git checkout adler/issue-761__NLM
and further, git fetch
does not solve my issue.