Converting a non-bare git-annex into a bare one

Joey Hess joey at kitenet.net
Mon Jun 13 02:44:38 CEST 2011


Richard Hartmann wrote:
> I made a pretty stupid mistake with a new repo... I created it
> non-bare. Obviously, the first step to converting it into a bare one
> is
> 
>   git clone --bare -l <from> <to>
> 
> followed by moving the bits & pieces of git-annex into the right
> places. As the directory structure of bare and non-bare git annex
> repos seems to be different (.git-annex/ vs annex/ with different
> content) and as I want to make _sure_ there won't be any problems down
> the road, I am wondering if there is a guide or checklist to properly
> converting between that two.

You can move .git-annex/ into annex/ in the bare repository. Also copy
over the annex.uuid setting into config, and that should be all that's
needed.

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.madduck.net/pipermail/vcs-home/attachments/20110612/4bec3521/attachment.pgp>


More information about the vcs-home mailing list