0

Can someone help me? I tried to sync to a branch of my GitHub project when it told me that I had a detached head. How do I fix it?

Here's a screenshot:

enter image description here

Thanks a lot!

Chait
  • 1,052
  • 2
  • 18
  • 30

1 Answers1

0

It appears you are no longer on a branch

Try:

git branch myBranch
git checkout myBranch

And that should get you back to where you want to be.

Or you could checkout the branch you thought you were on

git checkout myBranchThatIThoughtIWasOn
Tim Sneed
  • 490
  • 3
  • 10