Git clone verbose mode – show each incoming object

前端 未结 2 1164
生来不讨喜
生来不讨喜 2020-12-30 00:17

I’m wondering that git clone --verbose is not very verbose. The output of executing the command is the following:

$ git clone --verbose 

        
2条回答
  •  悲&欢浪女
    2020-12-30 00:34

    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.

    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)

提交回复
热议问题