I am suffering from a problem in git. I tried may solutions but in vain to find what is going on. My problem is
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/RC-1.0.0
remotes/origin/master
I am trying to checkout a remote branch i.e RC-1.0.0:
$ git checkout RC-1.0.0
Note: checking out 'RC-1.0.0'.
You are in 'detached HEAD' state.
You can look around, make experimental changes and commit them,
and you can discard any commits you make in this state without impacting
any branches by performing another checkout.
If you want to create a new
branch to retain commits you create, you may do so (now or later) by
using -b with the checkout command again.
Example:
git checkout -b new_branch_name
Any help appreciated