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

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/
Previous: Phillip SusiNext: Phillip Susi
Message 2 of 8 in “No working tree repository”
  1. Phillip SusiJun 15, 2010
  2. Matthieu MoyJun 15, 2010
  3. Phillip SusiJun 15, 2010
  4. Wesley J. LandakerJun 15, 2010
  5. Matthieu MoyJun 15, 2010
  6. Johannes SixtJun 16, 2010
  7. Peter KreftingJun 16, 2010
  8. Andreas SchwabJun 15, 2010

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.