git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: why is my repo size ten times bigger than what I expected?

From
Ruben Laguna <ruben.laguna@gmail.com>
Date
Mar 7, 2011, 09:59 UTC
Message-ID
<AANLkTinJZFGVNSQVfCipo33h5uPpK0pFY10E203oTfhU@mail.gmail.com>
In-Reply-To
<m2zkp9wwqe.fsf@igel.home>
Cloning it that way didn't help either,
But I have more info

If I set a bare repo and push my four branches to it (master, develop, gh-pages and experimental) the total size of the repo is 2.4MB (instead of 87MB)

$ git init --bare en4j_xx $ cd en4j $ git checkout master $ git push file://$PWD/../en4j_xx master $ git checkout develop $ git push file://$PWD/../en4j_xx develop $ git checkout experimental $ git push file://$PWD/../en4j_xx experimental $ git checkout gh-pages $ git push file://$PWD/../en4j_xx gh-pages $ $ du -sh ../en4j_xx 2.3M ../en4j_xx

So, how can I find the contents present in en4j that are not present in en4j_xx?
On Sat, Mar 5, 2011 at 1:57 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
Show 23 quoted lines
> Ruben Laguna <ruben.laguna@gmail.com> writes:
>
>> also cloning the repo doesn't change a thing
>>
>> $ git clone en4j en4j_xx
>> Cloning into en4j_xx...
>> done.
>> $ cd en4j_xx
>> $ du -sh .git
>>  87M    .git
>>
>> any other idea?
>
> Please use file://$PWD/en4j as URL, otherwise git clone just hard links
> everything.
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>
-- 
/Rubén
Previous: Andreas SchwabNext: Phillip Susi
Message 6 of 10 in “why is my repo size ten times bigger than what I expected?”
  1. Ruben LagunaMar 5, 2011
  2. Pascal ObryMar 5, 2011
  3. Jonathan del StrotherMar 5, 2011
  4. Ruben LagunaMar 5, 2011
  5. Andreas SchwabMar 5, 2011
  6. Ruben LagunaMar 7, 2011
  7. Phillip SusiMar 8, 2011
  8. Tor Arvid LundMar 8, 2011
  9. Ruben LagunaMar 9, 2011
  10. Tor Arvid LundMar 9, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.