问题解决:Unlink of the file ‘.git/objects/pack/….idx’ failed. Should I try again?

                                  问题解决:Unlink of the file ‘.git/objects/pack/….idx’ failed. Should I try again?

1、问题

2、解决

    git gc --auto
    git repack -d -l

3、解析

    (1)、使用此选项,git gc检查是否需要进行任何清洁工作; 如果没有,它会退出而不执行任何工作。一些git命令git gc --auto在执行可能会产生许多松散对象的操作之后运行。

    (2)、如果存储库中的松散对象太多或包装太多,则需要进行内务处理。如果松散对象的数量超过了gc.auto配置变量的值,则所有松散对象都将使用组合到一个包中git repack -d -l。将值设置gc.auto为0将禁用自动填充松散物体。

    (3)、如果包装数量超过了价值gc.autoPackLimit,那么现有包装(标有.keep文件的包装除外)将通过使用-A选项合并到一个包装中git repack。设置gc.autoPackLimit为0将禁用自动合并包装。

4、参考

2018-12-06

今天又冲突了,再加上一句。

git merge --abort

https://stackoverflow.com/questions/31037250/how-do-i-fix-cannot-pull-into-a-repository-with-state-merging-in-egit  【7 Answers】

本地git仓库与git仓库要同步了的话需要再次提交一次。

猜你喜欢

转载自blog.csdn.net/qq_36025814/article/details/84189169