{"thread":{"id":"7757","subject":"\"strip\" the repo","startedAt":"2007-04-20T19:28:02Z","lastAt":"2007-04-20T20:31:04Z","messageCount":2,"participants":["Yakov Lerner","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"40001","messageId":"f36b08ee0704201228v40e95ac1h8f541b14feb2cede@mail.gmail.com","threadId":"7757","inReplyTo":null,"subject":"\"strip\" the repo","fromName":"Yakov Lerner","fromEmail":"iler.ml@gmail.com","sentAt":"2007-04-20T19:28:02Z","receivedAt":"2007-04-20T19:28:02Z","isPatch":false,"sender":{"key":"iler.ml@gmail.com","avatar":null},"body":"I am curious, if I remove all files and dirs (except .git),\nand index, will it make it a valid bare repo ?\nOr switching the repo from non-bare to bare is difficult ?\n\nThanks\nYakov\n"},{"id":"40006","messageId":"20070420203104.GQ4489@pasky.or.cz","threadId":"7757","inReplyTo":"f36b08ee0704201228v40e95ac1h8f541b14feb2cede@mail.gmail.com","subject":"Re: \"strip\" the repo","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2007-04-20T20:31:04Z","receivedAt":"2007-04-20T20:31:04Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"On Fri, Apr 20, 2007 at 09:28:02PM CEST, Yakov Lerner wrote:\n> I am curious, if I remove all files and dirs (except .git),\n> and index, will it make it a valid bare repo ?\n> Or switching the repo from non-bare to bare is difficult ?\n\nYes, just removing everything except .git and .git/index (optionally)\nwill work fine to create a bare repository. Maybe a simpler way (but\nmore expensive) is to git clone --bare the repository.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nEver try. Ever fail. No matter. // Try again. Fail again. Fail better.\n\t\t-- Samuel Beckett\n"}]}