问题描述
我想知道 git clone --verbose
不是很详细。执行命令的输出如下:
I’m wondering that git clone --verbose
is not very verbose. The output of executing the command is the following:
$ git clone --verbose <repo>
remote: Counting objects: 184, done
remote: Finding sources: 100% (184/184)
remote: Total 184 (delta 66), reused 183 (delta 66)
Receiving objects: 100% (184/184), 18.90 KiB, done.
Resolving deltas: 100% (66/66), done.
预期的行为是逐个查看收到的对象列表。是否有可能使用其他选项?
The expected behaviour is to see the list of the received objects one by one. Is that possible using some other options?
推荐答案
不可能列出对象(文件,提交,blob等)只是因为git出于效率的原因将它们打包在单个文件中。出于同样的原因,克隆时只能看到一个隐藏的 .git
文件夹,只有下载了完整包文件时才会创建文件。
It is not possible to list objects (files, commits, blobs, whatever) one-by-one, simply because git packs them in a single file for efficiency reasons. For the same reason, you will only see a hidden .git
folder while cloning, files will be created only if the full pack file has been downloaded.
如果您想知道,这些包文件将被下载到 .git / objects / pack /
,其名称如 tmp_pack_XXXXXX
。 (稍后,它将被重命名为像 pack - *。pack
以及相关的 pack - *。idx
文件)
If you are wondering, these pack files will be downloaded to .git/objects/pack/
with a name like tmp_pack_XXXXXX
. (later on, it will be renamed to something like pack-*.pack
with a related pack-*.idx
file)
这篇关于Git克隆详细模式 - 显示每个传入的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!