From: Olaf Hering <olaf@aepfle•de>
To: Fredrik Gustafsson <iveqy@iveqy•com>
Cc: git@vger•kernel.org
Subject: Re: how to reduce disk usage for large .git dirs?
Date: Thu, 13 Nov 2014 13:03:13 +0100 [thread overview]
Message-ID: <20141113120313.GB15503@aepfle.de> (raw)
In-Reply-To: <20141113114919.GA2737@paksenarrion.iveqy.com>
On Thu, Nov 13, Fredrik Gustafsson wrote:
> On Thu, Nov 13, 2014 at 12:14:44PM +0100, Olaf Hering wrote:
> >
> > How can I reduce the disk usage for multiple copies of the same repo?
>
> You can use --local och --shared. As you say --shared can be dangerous.
> If you don't understand the man page enough to know how you should
> manage your clones you should probably not use it.
Perhaps its more a lack of doc how to use the result.
> --local seems to be what you're looking for.
I will try this.
> However as a side note I'm curious about what your use case is. Why do
> you need this many repos?
Because I do work in each copy, poke around, or do commits and push
them.
> Your setup looks familiar to me for a subversion user switching to git
> and trying to use git as subversion. The common usecase is not to have
> multiple worktrees but to do a checkout to the worktree you need to work
> on. This is possible with git since it's very fast and I recommend you
> to try to use one worktree.
Switching branches will invalidate timestamps, causing a full rebuild.
Olaf
next prev parent reply other threads:[~2014-11-13 12:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 11:14 how to reduce disk usage for large .git dirs? Olaf Hering
2014-11-13 11:49 ` Fredrik Gustafsson
2014-11-13 12:03 ` Olaf Hering [this message]
2014-11-14 12:32 ` Jakub Narębski
2014-11-13 12:02 ` Roger Gammans
2014-11-13 12:21 ` Olaf Hering
2014-11-13 12:09 ` Duy Nguyen
2014-11-13 15:44 ` Olaf Hering
2014-11-13 16:03 ` Fredrik Gustafsson
2014-11-13 16:08 ` Johan Herland
2014-11-13 20:15 ` Jeff King
2014-11-14 10:14 ` Olaf Hering
2014-11-14 10:24 ` Fredrik Gustafsson
2014-11-14 10:30 ` Olaf Hering
2014-11-14 10:54 ` Olaf Hering
2014-11-14 11:24 ` Olaf Hering
2014-11-14 15:06 ` Andreas Schwab
2014-11-25 14:32 ` Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141113120313.GB15503@aepfle.de \
--to=olaf@aepfle$(echo .)de \
--cc=git@vger$(echo .)kernel.org \
--cc=iveqy@iveqy$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox