How to deal with Git “Could not read” error

前端 未结 8 1170
萌比男神i
萌比男神i 2020-11-30 03:58

I am getting this error in my git repository:

22:09:15 $ git status
# On branch master
error: Could not read 8124cc15c63be92d534e4cdfa33c38d54deee122
error:          


        
8条回答
  •  没有蜡笔的小新
    2020-11-30 04:21

    If you don't have uncommited changes the easiest solution is to delete the local branch: git branch -D [branch name]

    and then checkout again the remote branch: git checkout -b [branch name] origin/[branch name]

提交回复
热议问题