我正在看这一行:
# list all objects including their size, sort by size, take top 10
objects=`git verify-pack -v .git/objects/pack/pack-*.idx | grep -v chain | sort -k3nr | head`
它说将采取10个项目。但我在任何地方都看不到 10 个。如果我想要 40 个,上面一行应该放在哪里?
head
默认输出 10 行。对于 40,你可以写
objects=`git verify-pack ... | head -n 40`