[kwlug-disc] How GIT stores stuff.
Znoteer
znoteer at mailbox.org
Tue May 3 18:08:42 EDT 2022
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
More information about the kwlug-disc
mailing list