This seems like a popular error for different causes.
I\'ve got a simple bare git repo called \"kiflea.git\", I clone it like this:
git clone git://k
Even though this error was displayed - my project was still connected to the corresponding repository - I ran the git branch command and saw the appropriate branches - then I ran git checkout *branchname and BOOM - all was well.
git branch
git checkout *branchname