Skip to main content
2 of 3
added 45 characters in body
Don
  • 4.3k
  • 12
  • 52
  • 81

I found a solution that worked for me.

  1. Re-clone the repository into another directory.
  2. Copy the .git folder from newly cloned repo & replace the one in the original repo.

This will repair the detached HEAD state which occurred as a result of (in this particular case) uncommitted changes that were discarded when computer was forced to shut down.

Don
  • 4.3k
  • 12
  • 52
  • 81