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

Re: "strip" the repo

From
Petr Baudis <pasky@suse.cz>
Date
Apr 20, 2007, 20:31 UTC
Message-ID
<20070420203104.GQ4489@pasky.or.cz>
In-Reply-To
<f36b08ee0704201228v40e95ac1h8f541b14feb2cede@mail.gmail.com>
On Fri, Apr 20, 2007 at 09:28:02PM CEST, Yakov Lerner wrote:
> I am curious, if I remove all files and dirs (except .git),
> and index, will it make it a valid bare repo ?
> Or switching the repo from non-bare to bare is difficult ?

Yes, just removing everything except .git and .git/index (optionally) will work fine to create a bare repository. Maybe a simpler way (but more expensive) is to git clone --bare the repository.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett
Previous: Yakov Lerner
Message 2 of 2 in “"strip" the repo”
  1. Yakov LernerApr 20, 2007
  2. Petr BaudisApr 20, 2007

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.