Git refs/remotes/origin/master does not point to a valid object

后端 未结 2 1376
礼貌的吻别
礼貌的吻别 2021-01-31 03:42

After the last merge to the master branch of my Git repository I have lost the ability to clone repository.

Cloning into test-repository...
remote: Counting objects:          


        
2条回答
  •  旧巷少年郎
    2021-01-31 04:17

    git gc
    git fsck --full
    git reflog expire --expire=0 --all
    git update-ref -d 0d998c99b6d01e8aabca72b1934802acf90b8fc9
    git gc --aggressive
    git remote update --prune
    

    and it worked!

提交回复
热议问题