When doing a git clone
of a repo over SSH or HTTP, you get output that looks something like this:
Cloning into 'some_directory'...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 7 (delta 0), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
Checking connectivity... done.
I'm interested in that last "Checking connectivity" step. It happens after the repo and all of its metadata has been downloaded, i.e. well after any internet connectivity has finished.
What exactly is this step of the process accomplishing?
Checking out files: 100% (2897/2897), done.
afterChecking connectivity
? It seems thatReceiving objects
doesn't actually mean receiving the content. For example, when I clonedgit
, I got this line of output:Receiving objects: 100% (199562/199562), 84.06 MiB | 3.90 MiB/s, done.
. However, when I downloaded a zip from GitHub, the decompressed directory was only 28 MiB. I'm not sure what this means, but it might be the summary of all the past commits or something like that.