git verify-pack和blob数量

时间:2015-04-14 15:03:51

标签: git bash

我正在看这一行:

# 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代替,那么应该在上面的哪一行?

1 个答案:

答案 0 :(得分:2)

head默认输出10行。对于40,你可以写

objects=`git verify-pack ... | head -n 40`