我正在看这一行:
# 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代替,那么应该在上面的哪一行?
答案 0 :(得分:2)
head
默认输出10行。对于40,你可以写
objects=`git verify-pack ... | head -n 40`