Clone git output

There are a few things that I don’t understand about the output of git clone. In the following example:

Cloning into 'omap-kernel'... remote: Counting objects: 2649896, done. remote: Compressing objects: 100% (418466/418466), done. remote: Total 2649896 (delta 2218148), reused 2636767 (delta 2205019) Receiving objects: 100% (2649896/2649896), 575.45 MiB | 4.76 MiB/s, done. Resolving deltas: 100% (2218148/2218148), done. 

What do objects , delta and reused ?

+4
source share
1 answer

Git stores everything in objects (e.g. drops, trees, commits). The Pro Git book has a great chapter ( Git Internals ) on this topic. The Git Objects section is a great tutorial on how to create it manually, and how Git works with these resources.

General and reusable information is displayed because Git also compresses the data (see git gc details). Otherwise, there was a lot of redundancy in the repository.

+4
source

Source: https://habr.com/ru/post/1441133/


All Articles