Skip to main content
The 2024 Developer Survey results are live! See the results
5 of 16
missing information
kenorb
  • 162.9k
  • 94
  • 697
  • 763

Just do this:

git checkout master

This will delete your detached head and set your version to your current origin/master.

If that doesn't fix it, this will:

git checkout -b temp
git branch -f master temp
git checkout master
Daniel Alexiuc
  • 13.2k
  • 9
  • 59
  • 73