1

If Git can restore deleted files by reverting to a previous commit shouldn't the .git directory have a very large file size since it holds all of the data that was deleted?

I'm deleting large images etc. and my .git directory does not seem to hold nearly enough data to restore such large files.

I'm guessing that a good deal of compression is involved?

1 Answer 1

2

Yes, there is a great deal of compression as well as delta encoding involved.

More details here: http://git-scm.com/book/en/v2/Git-Internals-Packfiles

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.