[kwlug-disc] How GIT stores stuff.

Bob Jonkman bjonkman at sobac.com
Sat May 7 11:28:56 EDT 2022


Yup, that's the book I've been using since 2014, every time I need to 
learn git all over again. And I too need to learn git all over again 
every time.

--Bob.

On 2022-05-03 18:08, Znoteer via kwlug-disc wrote:
> On Tue, May 03, 2022 at 03:53:26PM -0400, Bob B wrote:
> 
> [snip]
>>
>> So many questions! Do you have a good learning resource for git or is it just a matter of using it more and learning nuances like this as you come across them?
> 
> I am not a power user of git.  I only rarely have to use it, and only for very simple things, in order to colaborate on certain doc projects.  I have to start nearly at zero every time to figure out how to use git because of how infrequently I need to use it.  :)
> 
> That said, I've found this resource, known to many simply as "the git book", useful on numerous occasions:
> 
> https://git-scm.com/book/en/v2
> 
> I don't know if it has the kind plumbing details Chris Frey was describing, though.  I've only used it for figuring how do to stuff.
> 
> Znoteer the Montreal lurker.
> 
>>
>> BB
>>
>>
>>> -----Original Message-----
>>> From: kwlug-disc <kwlug-disc-bounces at kwlug.org> On Behalf Of Chris
>>> Frey
>>> Sent: May 3, 2022 2:24 PM
>>> To: KWLUG discussion <kwlug-disc at kwlug.org>
>>> Subject: Re: [kwlug-disc] How GIT stores stuff.
>>>
>>> On Tue, May 03, 2022 at 10:36:23AM -0400, Bob B wrote:
>>>> It has some references to deeper information that look enticing, but
>>> in
>>>> summary I think it confirms what I said in that GIT stores complete
>>> files,
>>>> not deltas. At least not deltas as 'diffs' of text files.
>>>
>>> This is correct.  At least until you run 'git gc' which then turns
>>> those individual files into packs, which do store things in diff-like
>>> ways.
>>>
>>> When you do a fresh clone from a remote repository, you will download
>>> the pack,
>>> which you can see if you look inside the .git directory.  If you start
>>> your own git repo, you will see many individual files in the objects
>>> subdirectory until you run git-gc and git decides it is time to
>>> pack things up for optimization purposes.
>>>
>>> - Chris
> 
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org

-- 
Bob Jonkman <bjonkman at sobac.com>          Phone: +1-519-635-9413
SOBAC Microcomputer Services             http://sobac.com/sobac/
Software   ---   Office & Business Automation   ---   Consulting
GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA







More information about the kwlug-disc mailing list