zoukankan      html  css  js  c++  java
  • git Auto packing the repository in background for optimum performance

    遇到问题:

           git本地仓库,如果长时间不进行清理,几个月以后的某一天,可能拉取代码的时候突然提示你  

           git Auto packing the repository in background for optimum performance. See "git help gc" for manu...

    原因解释:

           自己本地一些 “悬空对象”太多(git删除分支或者清空stash的时候,这些其实还没有真正删除,成为悬空对象,我们可以使用merge命令可以从中恢复一些文件),

    解决方案:

           1.输入命令:git fsck --lost-found,可以看到好多“dangling commit” 
           2.清空他们:git gc --prune=now,完成

  • 相关阅读:
    快速排序
    归并排序
    堆排序
    通过先序和中序创建二叉树
    插入排序
    二叉排序树
    九宫重排
    字符串匹配 sunday算法
    傻逼数学题(math)
    最近点对学习笔记
  • 原文地址:https://www.cnblogs.com/yuzhaoblog/p/12377718.html
Copyright © 2011-2022 走看看