Re: No working tree repository
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jun 15, 2010, 18:10 UTC
- Message-ID
- <vpqy6egi2va.fsf@bauges.imag.fr>
- In-Reply-To
- <4C17BEB7.90403@cfl.rr.com>
Phillip Susi <psusi@cfl.rr.com> writes:
Show 6 quoted lines
> I'd like to keep a local copy of the kernel repository mainly for > searching the history. The working tree uses up nearly 400mb of disk > space that I do not normally need. How can I remove the working tree, > and keep only the packed repository so I can review the logs, and only > check out a working copy if I actually want to edit or compile the > sources?
This is called a "bare" repository. Now, you have the keyword to RTFM ;-).
You can do something like
mv linux-repo linux-tree cd linux-tree mv .git ../linux-repo cd ../linux-repo git config core.bare true
(and optionnaly remove linux-tree/)
or you could have used "git clone --bare" when you cloned the repository.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/