How to unpack packed-refs?

前端 未结 4 1634
说谎
说谎 2021-01-04 00:18

I cloned a project from github with git clone --mirror. That left me with a repository with a packed-refs file, a .pack and an .idx file.

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 01:04

    There is a workaround that worked for me and might work for some of you:

    Basically, Delete all the tags locally (removes it from packed-refs) and then fetch it again.

    git tag | xargs git tag -d && git fetch --tags
    

提交回复
热议问题