Whole team gets 'too many unreachable loose objects' messages

前端 未结 2 1047
猫巷女王i
猫巷女王i 2020-12-30 19:52

Not long ago, we have made the switch from SVN to Git.

A few days ago, I realized that all of our team gets those messages when they push :

$ git p         


        
2条回答
  •  旧时难觅i
    2020-12-30 20:53

    I face same issue and above solution did not solve my problem. I was getting the same issue that says :

    warning: There are too many unreachable loose objects; run 'git prune' to remove them.
    

    I have refer this link and run the following command it got resolved : git gc

    eg : /xx/code/home/xx is my git repositry home path.

    (base) laxman@xxxxx:/xx/code/home/xx$ git gc
    Counting objects: 251571, done.
    Delta compression using up to 12 threads.
    Compressing objects: 100% (78004/78004), done.
    Writing objects: 100% (251571/251571), done.
    Total 251571 (delta 141562), reused 245636 (delta 137343)
    

    Hope it will work for some others as well.

提交回复
热议问题