# git objects

2 messages from 2015-12-24 to 2015-12-24. Participants: Thiago Farina, Shawn Pearce.
Thread: https://gitlist.dev/t/41074

## Thiago Farina, 2015-12-24 22:17

Subject: git objects
Message-ID: <CACnwZYfMKG18ZTR3bCLY5FRsBYmSsC9Co2e=iLRYxsM=w=Dqog@mail.gmail.com>
URL: https://gitlist.dev/e/CACnwZYfMKG18ZTR3bCLY5FRsBYmSsC9Co2e%3DiLRYxsM%3Dw%3DDqog%40mail.gmail.com

```
Hi,

When ever I make a commit (assume I'm changing a single file) and do a
'git push origin master', git says 'Counting objects: 6, done.'

Does git makes 6 objects everytime? What are those objects?

-- 
Thiago Farina

```

## Shawn Pearce, 2015-12-24 23:34

Subject: Re: git objects
Message-ID: <CAJo=hJt9c6gr9AuapR7yUSYchF8=67AYQp-06XrTudbfa2ipkA@mail.gmail.com>
URL: https://gitlist.dev/e/CAJo%3DhJt9c6gr9AuapR7yUSYchF8%3D67AYQp-06XrTudbfa2ipkA%40mail.gmail.com
In-Reply-To: <CACnwZYfMKG18ZTR3bCLY5FRsBYmSsC9Co2e=iLRYxsM=w=Dqog@mail.gmail.com>

```
On Thu, Dec 24, 2015 at 2:17 PM, Thiago Farina <tfransosi@gmail.com> wrote:
>
> When ever I make a commit (assume I'm changing a single file) and do a
> 'git push origin master', git says 'Counting objects: 6, done.'
>
> Does git makes 6 objects everytime? What are those objects?

1 commit object;
1 blob object for the new file revision;
1 tree object for the top level directory;
3 tree objects for intermediate paths
= 6

So your single file is some path like "src/main/lib/foo.c".

```
