K
K
kot25662019-01-09 16:26:59
git
kot2566, 2019-01-09 16:26:59

Git. Does every commit copy the entire repository?

Am I correct in thinking that:

  1. Does every commit copy a snapshot of the entire repository?
  2. Therefore, with a large number of small commits (even one file at a time) with small changes, the size of the repository grows much faster than if I made one commit at once with all the files that have changed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Movchan, 2019-01-09
@kot2566

If the file does not change, then no duplicates are stored.
snapshots.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question