Recreate Git Ref after Fatal Error

前端 未结 1 1390
闹比i
闹比i 2021-01-19 15:01

I recently had to perform a hard reboot and I am now receiving an error in git when I try to access a specific branch (this does not happen when accessing other branches):

相关标签:
1条回答
  • 2021-01-19 15:33

    I finally found out how to answer this question...

    Simply go into the folder .git and delete refs/heads/BadBranch

    This allows the rest of the branches to work as they normally should, while only losing information from the corrupted branch.

    0 讨论(0)
提交回复
热议问题