小编Jav*_*Dev的帖子

Ubuntu Linux git gc说错误:无法运行重新包装

我正在阅读其他类似标题的帖子,但似乎与我无关.我在我当地的ubuntu盒子里有一个git repo.我的文件是mysql dump我分成2mb文件.当我git gc时,这是输出:

git@pc:~/repos/x$ git gc
Counting objects: 17244, done.
Delta compression using up to 4 threads.
Killedssing objects:  90% (2491/2767)   
error: failed to run repack
Run Code Online (Sandbox Code Playgroud)

有没有办法追踪造成的?我已经试过了

git config --global pack.windowMemory "20m"
git config --global pack.packSizeLimit "20m"
git config --global pack.threads "1"
Run Code Online (Sandbox Code Playgroud)

但这是输出

git@pc:~/repos/x$ git gc
Counting objects: 17244, done.
Killedssing objects:   3% (88/2767)   
error: failed to run repack
Run Code Online (Sandbox Code Playgroud)

编辑

这对我有用:

git config --global pack.windowMemory "20m"
git config --global pack.packSizeLimit "20m"
git config --global pack.threads "4"
git config --global …
Run Code Online (Sandbox Code Playgroud)

linux git ubuntu posix signals

5
推荐指数
1
解决办法
2909
查看次数

标签 统计

git ×1

linux ×1

posix ×1

signals ×1

ubuntu ×1