Skip to main content
added 16 characters in body
Source Link
Don
  • 4.3k
  • 12
  • 52
  • 81

Restore broken branch/ resolveresolve detached HEAD as valid refstate?

After restarting my computer I went to commit and receive this, 'git commit' & 'git status' both return an error message:

error: bad signature

fatal: index file corrupt

running 'git branch':

fatal: Failed to resolve HEAD as a valid ref.

running 'git log':

fatal: your current branch appears to be broken

How can I restore/fix my local repo/branch?

 
What causes this? How can I restore/fix my local repo/branch?

Restore broken branch/ resolve HEAD as valid ref?

After restarting my computer I went to commit and receive this message:

error: bad signature

fatal: index file corrupt

running 'git branch':

fatal: Failed to resolve HEAD as a valid ref.

running 'git log':

fatal: your current branch appears to be broken

How can I restore/fix my local repo/branch?

Restore broken branch/resolve detached HEAD state?

After restarting my computer, 'git commit' & 'git status' both return an error message:

error: bad signature

fatal: index file corrupt

running 'git branch':

fatal: Failed to resolve HEAD as a valid ref.

running 'git log':

fatal: your current branch appears to be broken

 
What causes this? How can I restore/fix my local repo/branch?
Source Link
Don
  • 4.3k
  • 12
  • 52
  • 81

Restore broken branch/ resolve HEAD as valid ref?

After restarting my computer I went to commit and receive this message:

error: bad signature

fatal: index file corrupt

running 'git branch':

fatal: Failed to resolve HEAD as a valid ref.

running 'git log':

fatal: your current branch appears to be broken

How can I restore/fix my local repo/branch?